25 lines
594 B
Docker
25 lines
594 B
Docker
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
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN corepack enable pnpm && pnpm add -g turbo
|
|
RUN pnpm config set registry https://registry.npmmirror.com/
|
|
RUN pnpm install
|
|
|
|
EXPOSE 3002
|
|
|
|
ENV NEXT_PUBLIC_SPACE_BASE_PATH="/spaces"
|
|
|
|
VOLUME [ "/app/node_modules", "/app/apps/space/node_modules"]
|
|
|
|
CMD ["pnpm", "dev", "--filter=space"]
|