diff --git a/Dockerfile b/Dockerfile index dc8d1338..0d19cf15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,7 @@ WORKDIR /app COPY server . -RUN npm install npm --global \ - && npm install \ +RUN npm install \ && npm run build \ && npm prune --production @@ -28,8 +27,7 @@ RUN npm install npm --global \ FROM node:22-alpine RUN apk -U upgrade \ - && apk add bash python3 squid --no-cache \ - && npm install npm --global + && apk add bash python3 squid --no-cache USER node WORKDIR /app diff --git a/Dockerfile.dev b/Dockerfile.dev index e9c91958..150ea354 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,7 +1,6 @@ FROM node:22-alpine RUN apk -U upgrade \ - && apk add bash build-base python3 xdg-utils --no-cache \ - && npm install npm --global + && apk add bash build-base python3 xdg-utils --no-cache WORKDIR /app