mirror of
https://github.com/plankanban/planka.git
synced 2026-05-04 18:00:55 +03:00
refactor(docker): Remove global npm installation from Dockerfiles
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user