From 131bd7f23c8e83c4c11b62afa38aabde7b781e5d Mon Sep 17 00:00:00 2001 From: Mohamed EL-Habib Date: Mon, 25 Mar 2024 21:15:28 +0100 Subject: [PATCH] cleanup the /tmp folder to save 2.5Mo --- 18/alpine3.18/Dockerfile | 3 ++- 18/alpine3.19/Dockerfile | 3 ++- 20/alpine3.18/Dockerfile | 3 ++- 20/alpine3.19/Dockerfile | 3 ++- 21/alpine3.18/Dockerfile | 3 ++- 21/alpine3.19/Dockerfile | 3 ++- Dockerfile-alpine.template | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/18/alpine3.18/Dockerfile b/18/alpine3.18/Dockerfile index 605dd05089..2b45f07955 100644 --- a/18/alpine3.18/Dockerfile +++ b/18/alpine3.18/Dockerfile @@ -102,7 +102,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && apk del .build-deps-yarn \ # smoke test - && yarn --version + && yarn --version \ + && rm -fr /tmp/* COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] diff --git a/18/alpine3.19/Dockerfile b/18/alpine3.19/Dockerfile index 19832cfb9a..70e12dd6ce 100644 --- a/18/alpine3.19/Dockerfile +++ b/18/alpine3.19/Dockerfile @@ -102,7 +102,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && apk del .build-deps-yarn \ # smoke test - && yarn --version + && yarn --version \ + && rm -fr /tmp/* COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] diff --git a/20/alpine3.18/Dockerfile b/20/alpine3.18/Dockerfile index 05ec754634..9b3f225adb 100644 --- a/20/alpine3.18/Dockerfile +++ b/20/alpine3.18/Dockerfile @@ -102,7 +102,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && apk del .build-deps-yarn \ # smoke test - && yarn --version + && yarn --version \ + && rm -fr /tmp/* COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] diff --git a/20/alpine3.19/Dockerfile b/20/alpine3.19/Dockerfile index d9ece486b4..97ad907a2d 100644 --- a/20/alpine3.19/Dockerfile +++ b/20/alpine3.19/Dockerfile @@ -102,7 +102,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && apk del .build-deps-yarn \ # smoke test - && yarn --version + && yarn --version \ + && rm -fr /tmp/* COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] diff --git a/21/alpine3.18/Dockerfile b/21/alpine3.18/Dockerfile index 3143aed4c1..73ba463fc4 100644 --- a/21/alpine3.18/Dockerfile +++ b/21/alpine3.18/Dockerfile @@ -102,7 +102,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && apk del .build-deps-yarn \ # smoke test - && yarn --version + && yarn --version \ + && rm -fr /tmp/* COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] diff --git a/21/alpine3.19/Dockerfile b/21/alpine3.19/Dockerfile index 78b6c075e4..5bd850ba21 100644 --- a/21/alpine3.19/Dockerfile +++ b/21/alpine3.19/Dockerfile @@ -102,7 +102,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && apk del .build-deps-yarn \ # smoke test - && yarn --version + && yarn --version \ + && rm -fr /tmp/* COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 5da2bb7c64..9a27a1bee3 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -92,7 +92,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \ && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ && apk del .build-deps-yarn \ # smoke test - && yarn --version + && yarn --version \ + && rm -fr /tmp/* COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"]