Some checks failed
Branch Build CE / Build Setup (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Codespell / Check for spelling errors (push) Has been cancelled
Sync Repositories / sync_changes (push) Has been cancelled
Branch Build CE / Build-Push Admin Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Web Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Space Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Live Collaboration Docker Image (push) Has been cancelled
Branch Build CE / Build-Push API Server Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Proxy Docker Image (push) Has been cancelled
Branch Build CE / Build-Push AIO Docker Image (push) Has been cancelled
Branch Build CE / Upload Build Assets (push) Has been cancelled
Branch Build CE / Build Release (push) Has been cancelled
27 lines
591 B
Docker
27 lines
591 B
Docker
FROM node:22-alpine
|
|
|
|
# Configure Chinese mirrors for npm/pnpm
|
|
ENV npm_config_registry=https://registry.npmmirror.com
|
|
ENV PNPM_REGISTRY=https://registry.npmmirror.com
|
|
|
|
# Configure Chinese mirrors for apk
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|
|
|
RUN apk add --no-cache libc6-compat
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN corepack enable pnpm && pnpm add -g turbo
|
|
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"]
|