Skip to content

Commit

Permalink
Remove node_modules only required at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Aug 21, 2023
1 parent 464bd25 commit a50f940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ RUN \
# Remove build logs, temp files, and cache.
/app/www/vendor/bundle/ruby/*/build_info/ \
/app/www/vendor/bundle/ruby/*/cache/ \
/app/www/node_modules/.cache \
/app/www/tmp/cache \
$HOME/.bundle/cache \
$HOME/.composer \
Expand All @@ -106,7 +105,8 @@ RUN \
-o -name 'Makefile' \
-o -name 'README*' \) \
-type f -delete && \
rm -rf /app/www/streaming/node_modules/*/test
rm -rf /app/www/streaming/node_modules/*/test && \
rm -rf /app/www/node_modules

COPY root/ /

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ RUN \
# Remove build logs, temp files, and cache.
/app/www/vendor/bundle/ruby/*/build_info/ \
/app/www/vendor/bundle/ruby/*/cache/ \
/app/www/node_modules/.cache \
/app/www/tmp/cache \
$HOME/.bundle/cache \
$HOME/.composer \
Expand All @@ -108,7 +107,8 @@ RUN \
-o -name 'Makefile' \
-o -name 'README*' \) \
-type f -delete && \
rm -rf /app/www/streaming/node_modules/*/test
rm -rf /app/www/streaming/node_modules/*/test && \
rm -rf /app/www/node_modules

COPY root/ /

Expand Down

0 comments on commit a50f940

Please sign in to comment.