Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ‹ After build, remove npm from run stage

Alicia Sykes21fb0e1fe4d1
diff --git a/Dockerfile b/Dockerfile
index 0173bcb8..1a1ed75b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -45,7 +45,8 @@ RUN apk upgrade --no-cache \
&& apk add --no-cache tzdata tini iputils-ping \
&& apk add --no-cache --virtual .setcap libcap-setcap \
&& setcap cap_net_raw+ep "$(readlink -f "$(command -v ping)")" \
- && apk del .setcap
+ && apk del .setcap \
+ && rm -rf /usr/local/lib/node_modules/npm /usr/local/bin/npm /usr/local/bin/npx
COPY --chown=node:node --from=deps /app/node_modules ./node_modules
COPY --chown=node:node --from=build /app/dist ./dist