mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
chore: upgrade Node.js version to 22-alpine and adjust artifact copy path in Dockerfile
This commit is contained in:
1 parent
762c53610b
commit
6cb9dc5b13
1 file changed
+2
-2
+2
-2
@@ -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;'
|
||||
Reference in new issue
Block a user