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
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:
+5
-2
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user