Skip to content

Commit a71add0

Browse files
committed
build: final build from initial image
1 parent 54bb3b5 commit a71add0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine as build
1+
FROM node:21-alpine as build
22

33
WORKDIR /app
44

@@ -10,7 +10,11 @@ COPY . /app
1010

1111
RUN npm run build
1212

13-
FROM gcr.io/distroless/nodejs20 as prod
13+
# To reduce the weight of the docker image, you should use "gcr.io/distroless/nodejs20".
14+
# There are build issues on the Node 20 version. Switch to "distroless" when Node 22 is released or they fix a bug in 20
15+
# More https://github.com/nodejs/docker-node/issues/1946
16+
# FORM gcr.io/distroless/nodejs20 as prod
17+
FROM build
1418

1519
LABEL org.opencontainers.image.title="Mafl"
1620
LABEL org.opencontainers.image.description="Minimalistic flexible homepage"

0 commit comments

Comments
 (0)