feat: 增加 docker compose 文件的镜像支持
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
chuan
2025-11-11 15:29:11 +08:00
parent bba4bb40c8
commit 0a7194daf3
6 changed files with 32 additions and 2 deletions

View File

@@ -1,10 +1,15 @@
FROM node:22-alpine
# Use Chinese mirrors for faster package installation
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN npm config set registry https://registry.npmmirror.com/
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY . .
RUN corepack enable pnpm && pnpm add -g turbo
RUN pnpm config set registry https://registry.npmmirror.com/
RUN pnpm install
EXPOSE 3003