Skip to content

Commit

Permalink
refactor: Debloat docker image
Browse files Browse the repository at this point in the history
Remove unnecessary cache, build, and type packages from prod layer
  • Loading branch information
FoxxMD committed Apr 4, 2024
1 parent 133cbff commit 406ee50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ RUN yarn install --omit=dev \
&& chown abc:abc node_modules \
&& rm -rf node_modules/tsx \
&& rm -rf node_modules/typescript \
&& rm -rf node_modules/patch-package
&& rm -rf node_modules/patch-package \
&& rm -rf node_modules/@types \
&& rm -rf node_modules/@esbuild \
&& rm -rf /usr/local/share/.cache \

0 comments on commit 406ee50

Please sign in to comment.