downgrade node base image to 18.17.1

This commit is contained in:
tawoe 2024-10-14 12:50:06 +02:00
parent 1b0bdf5886
commit 2d8162b2f9

View File

@ -1,5 +1,5 @@
# First stage builds the application
FROM node:lts-bullseye as builder
FROM node:18.17.1-slim as builder
# Add application sources
ADD .. /home/node/app/
@ -10,7 +10,7 @@ RUN npm run build-server
# Run script uses standard ways to run the application
# CMD npm run -d start
FROM node:lts-bullseye
FROM node:18.17.1-slim
COPY --from=builder /home/node/app/server-dist /home/node/app
RUN mkdir /home/node/node_modules