From f2251afc179bd545e29da8617f590eb01eff82e3 Mon Sep 17 00:00:00 2001 From: Stephen JANNIN Date: Tue, 10 Sep 2024 14:01:26 +0200 Subject: [PATCH] Update Dockerfile fix docker build --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 733bba22..835efbc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the Vue.js application -FROM node:14 as build-stage +FROM node:22 AS build-stage WORKDIR /app COPY package*.json ./ RUN npm install @@ -7,7 +7,7 @@ COPY . . RUN npm run build # Stage 2: Serve the application with Nginx -FROM nginx:1.27 as production-stage +FROM nginx:1.27 AS production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/dist/assets/app-config.js /usr/share/nginx/html-template/app-config.template.js