Skip to content

Commit

Permalink
feat: removed temporary files from the webserver image
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiolaverde0 committed Jan 27, 2024
1 parent 30dda13 commit 55ea8e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/PhpDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN composer install --optimize-autoloader --no-dev\
&& npm install \
&& npm run prod
&& npm run prod \
&& rm -rf /usr/local/share/.cache \
/root/.npm \
/tmp/* \
/usr/local/bin/composer

ENTRYPOINT ["/var/www/html/entrypoint.sh"]
CMD ["apache2-foreground"]

0 comments on commit 55ea8e3

Please sign in to comment.