From 6cb9dc5b13507f08cb0c680fe7bf50162e95da76 Mon Sep 17 00:00:00 2001 From: 4gray Date: Mon, 3 Mar 2025 22:28:37 +0100 Subject: [PATCH] chore: upgrade Node.js version to 22-alpine and adjust artifact copy path in Dockerfile --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5f50a53c5..2f4dab3e4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ # Stage 1 - build environment -FROM node:18-alpine AS build +FROM node:22-alpine AS build RUN apk add --no-cache python3 make g++ git @@ -26,7 +26,7 @@ RUN npm run build:web FROM nginx:stable-alpine # Copy artifacts and nignx.conf -COPY --from=build /usr/src/app/dist/ /usr/share/nginx/html +COPY --from=build /usr/src/app/dist/browser /usr/share/nginx/html COPY --from=build /usr/src/app/docker/nginx.conf /etc/nginx/conf.d/default.conf CMD sed -i "s#http://localhost:3333#$BACKEND_URL#g" /usr/share/nginx/html/main.js && nginx -g 'daemon off;' \ No newline at end of file