chore: upgrade Node.js version to 22-alpine and adjust artifact copy path in Dockerfile

This commit is contained in:
4gray committed 2025-03-03 22:28:37 +01:00
1 parent 762c53610b
commit 6cb9dc5b13
1 file changed
+2 -2
+2 -2
View File
@@ -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;'