Skip to content

Commit

Permalink
docker: minify image size
Browse files Browse the repository at this point in the history
  • Loading branch information
chitang233 committed Feb 14, 2024
1 parent bf3ea9f commit d8f74bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ RUN \
pacman -Syu --noconfirm --needed --noprogressbar --noconfirm nodejs npm base-devel openssl-1.1 && \
cd /app && \
npm install && \
pacman -Rsc --noconfirm base-devel && \
rm -rf /var/cache /var/lib/pacman/sync/*
pacman -Rsc --noconfirm base-devel npm && \
rm -rf /var/cache /var/lib/pacman/sync/* /root/.npm /root/.cache /root/.node_repl_history

0 comments on commit d8f74bb

Please sign in to comment.