We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d5a40 commit a01cabaCopy full SHA for a01caba
alfalfa_web/Dockerfile
@@ -27,3 +27,9 @@ WORKDIR /srv/alfalfa
27
28
# 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" ]
docker-compose.yml
@@ -6,7 +6,7 @@ services:
6
# is to utilize shared code, specifically in db
7
dockerfile: alfalfa_web/Dockerfile
8
context: .
9
- target: base
+ target: production
10
args:
11
- NODE_ENV
12
image: ${REGISTRY_BASE_URI}/web:${VERSION_TAG}
0 commit comments