Skip to content

Commit 3ec0e7d

Browse files
committed
build: node 18
1 parent de4da30 commit 3ec0e7d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: Dockerfile

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:19-alpine as build
1+
FROM node:18-alpine as build
22

33
WORKDIR /app
44

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

1111
RUN npm run build
1212

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
13+
# There are build issues on the Node 20 version. Jump to 20 when the bug will be fixed.
14+
# https://github.com/nodejs/docker-node/issues/1946
15+
FROM gcr.io/distroless/nodejs18
1816

1917
LABEL org.opencontainers.image.title="Mafl"
2018
LABEL org.opencontainers.image.description="Minimalistic flexible homepage"

0 commit comments

Comments
 (0)