2026-03-09 11:18:22 +01:00
|
|
|
FROM node:20.19.3-slim
|
2025-10-11 13:27:50 +01:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
ENV CI=true
|
2025-10-11 13:27:50 +01:00
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
ARG PUBLIC_IS_SELFHOSTED=true
|
2025-10-11 13:27:50 +01:00
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
RUN corepack enable && corepack prepare pnpm@10.19.0 --activate
|
|
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
2026-03-17 06:38:18 +01:00
|
|
|
RUN pnpm install --frozen-lockfile --ignore-scripts --filter @cio/dashboard...
|
2026-03-09 11:18:22 +01:00
|
|
|
RUN find . -name 'tsconfig.tsbuildinfo' -delete
|
2026-03-18 23:39:12 +01:00
|
|
|
RUN NODE_OPTIONS="--max-old-space-size=3072" \
|
2026-03-09 11:18:22 +01:00
|
|
|
PUBLIC_IS_SELFHOSTED="${PUBLIC_IS_SELFHOSTED}" \
|
|
|
|
|
pnpm -r --filter @cio/dashboard... build
|
|
|
|
|
|
|
|
|
|
RUN test -f apps/dashboard/build/index.js || (echo "ERROR: Dashboard build output not found at apps/dashboard/build/index.js" && exit 1)
|
2025-10-11 13:27:50 +01:00
|
|
|
|
|
|
|
|
EXPOSE 3082
|
|
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
ENV NODE_ENV=production \
|
|
|
|
|
PORT=3082 \
|
2025-10-11 13:27:50 +01:00
|
|
|
PUBLIC_IS_SELFHOSTED=true
|
|
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
WORKDIR /app/apps/dashboard
|
|
|
|
|
CMD ["node", "build/index.js"]
|