Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

perf(image): remove unneeded cache from node_modules #1348

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ RUN NODE_ENV=development npm run build && \
# prod build
RUN NODE_ENV=production npm run build && \
NODE_ENV=production npm prune && \
# https://github.com/sindresorhus/find-cache-dir
rm -Rf node_modules/.cache && \
mkdir -p /opt/one-app/production && \
chown node:node /opt/one-app/production && \
mv /opt/build/LICENSE.txt /opt/one-app/production && \
Expand Down
Loading