Browse Source

remove node cache in the final docker image (~/.npm/_cacache/ folder)

Signed-off-by: caioau <[email protected]>
pull/170/head
caioau 5 years ago
parent
commit
320d64b139
  1. 5
      Dockerfile

5
Dockerfile

@ -6,8 +6,9 @@ RUN apk add -U --no-cache wireguard-tools dumb-init
# Copy Web UI
COPY src/ /app/
WORKDIR /app
RUN npm ci --production
RUN npm i -g nodemon
RUN npm ci --production \
&& npm i -g nodemon \
&& npm cache clear --force
RUN mv /app/node_modules/ /node_modules/
# Expose Ports

Loading…
Cancel
Save