From 2fbea8d80f370c6a296f9eb9a20779e49c915dea Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 3 Jan 2019 13:06:47 +0100 Subject: [PATCH] Cleanup caches at the end of the build --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 002bda1..e4e38fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.8 LABEL com.example.vendor="LakeDrops" \ maintainer="juergen.haas@lakedrops.com" \ - version="1.5.1" \ + version="1.5.2" \ description="An image for GitLab runner to build and test Drupal projects." ARG ALPINE_VERSION @@ -94,7 +94,10 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \ ln -s /usr/local/bin/ahoy /usr/local/bin/a && \ ln -s /usr/local/bin/composer /usr/local/bin/c && \ ln -s /usr/local/bin/docker-compose /usr/local/bin/d-c && \ - ln -s /usr/local/bin/drush /usr/local/bin/d + ln -s /usr/local/bin/drush /usr/local/bin/d && \ + \ + rm -rf /var/cache/* && \ + rm -rf /root/.composer/cache ADD bin/* /usr/local/bin/ @@ -102,4 +105,3 @@ ENV LAKEDROPS_DEV_DC_OPTIONS "-T" ENTRYPOINT ["docker-entrypoint.sh"] CMD ["sh"] - -- GitLab