File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 1- FROM node:22 AS base
1+ FROM node:22-slim AS base
22ARG GIT_COMMIT
33ENV GIT_COMMIT=$GIT_COMMIT
44
@@ -15,7 +15,7 @@ COPY alfalfa_web /srv/alfalfa
1515
1616ARG NODE_ENV
1717RUN npm run build
18- CMD [ "npm " , "start " ]
18+ CMD [ "node " , "build/index.js " ]
1919
2020# **** Staged build for running in development mode ****
2121FROM base AS dev
@@ -26,10 +26,4 @@ FROM base AS dev
2626WORKDIR /srv/alfalfa
2727
2828# Run in watch mode so it will automatically restart
29- CMD [ "npm" , "run" , "watch" ]
30-
31- FROM gcr.io/distroless/nodejs22-debian12:latest as production
32- COPY --from=base /srv/alfalfa /srv/alfalfa
33- WORKDIR /srv/alfalfa
34-
35- CMD [ "build/index.js" ]
29+ CMD [ "npm" , "run" , "watch" ]
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
66 # is to utilize shared code, specifically in db
77 dockerfile : alfalfa_web/Dockerfile
88 context : .
9- target : production
9+ target : base
1010 args :
1111 - NODE_ENV
1212 image : ${REGISTRY_BASE_URI}/web:${VERSION_TAG}
You can’t perform that action at this time.
0 commit comments