mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2026-01-10 18:04:43 +00:00
Ensure unwanted artifacts are removed during build
This commit is contained in:
@@ -308,6 +308,7 @@ RUN set -eux \
|
||||
&& su -c '. /opt/nvm/nvm.sh; npm cache clear --force' devilbox \
|
||||
&& su -c '. /opt/nvm/nvm.sh; nvm cache clear --force' devilbox \
|
||||
&& rm -rf /home/devilbox/.npm \
|
||||
&& rm -rf /home/devilbox/.cache \
|
||||
&& rm -rf /home/devilbox/.config \
|
||||
&& rm -rf /tmp/* \
|
||||
&& (rm -rf /tmp/.* || true) \
|
||||
@@ -502,6 +503,7 @@ RUN set -eux \
|
||||
{%- endif -%}
|
||||
{% endfor %}{{ "\n\t" }}\
|
||||
# -------------------- Cleanup --------------------
|
||||
&& rm -rf /home/devilbox/.cache/ \
|
||||
&& rm -rf /home/devilbox/.config/ \
|
||||
&& rm -rf /root/.ansible \
|
||||
&& rm -rf /root/.console \
|
||||
|
||||
@@ -572,7 +572,7 @@ software_available:
|
||||
mhsendmail:
|
||||
all:
|
||||
command: |
|
||||
wget https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
|
||||
wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
|
||||
&& chmod +x mhsendmail_linux_amd64 \
|
||||
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
|
||||
mysqldumpsecure:
|
||||
@@ -737,7 +737,7 @@ software_available:
|
||||
check: phpmd --version | grep -E '^PHPMD [.0-9]+'
|
||||
all:
|
||||
command: |
|
||||
wget -c https://phpmd.org/static/latest/phpmd.phar \
|
||||
wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
|
||||
&& mv phpmd.phar /usr/local/bin/phpmd \
|
||||
&& chmod +x /usr/local/bin/phpmd \
|
||||
phpunit:
|
||||
|
||||
Reference in New Issue
Block a user