From d233b4b5f7c67d68f3bc9e70ebbba5e5eaa75298 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 27 Nov 2023 16:24:00 +0100 Subject: [PATCH] update dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5653055..e298069 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16 as base +FROM node:18 as base # Create app directory RUN mkdir -p /opt/app @@ -18,7 +18,7 @@ RUN npm run build # Final image ##################### -FROM node:16-alpine +FROM node:18-alpine ENV NODE_ENV=prod MAINTAINER cracker0dks @@ -28,7 +28,7 @@ RUN mkdir -p /opt/app WORKDIR /opt/app COPY ./package.json ./package-lock.json config.default.yml ./ -RUN npm ci --only=prod +RUN npm ci --only=prod --save-dev webpack-dev-server COPY scripts ./scripts COPY --from=base /opt/app/dist ./dist