Reduce portal production image size
Test, build, and deploy ComfyUI Jobs / test-build (push) Successful in 3m2s
Test, build, and deploy ComfyUI Jobs / deploy (push) Successful in 14s
Test, build, and deploy ComfyUI Jobs / browser-test (push) Successful in 2m20s
Test, build, and deploy ComfyUI Jobs / qa-gate (push) Successful in 5s

This commit is contained in:
2026-10-28 10:37:44 +00:00
parent 23d7b30211
commit 5f21309829
4 changed files with 116 additions and 23 deletions
+5 -2
View File
@@ -1,13 +1,16 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --include=dev
RUN npm ci
COPY . .
RUN npm run build:frontend
FROM node:20-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /app .
COPY package*.json ./
RUN npm ci --omit=dev && npm cache clean --force
COPY --from=build /app/frontend/dist/browser ./frontend/dist/browser
COPY server.js job-store.js ./
EXPOSE 7002
CMD ["node", "server.js"]