Ensure unwanted artifacts are removed during build

This commit is contained in:
cytopia
2020-01-04 20:52:31 +01:00
parent 529a33f1a0
commit fc5e5e21e5
13 changed files with 47 additions and 23 deletions

View File

@@ -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 \

View File

@@ -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: