Skip to content

Commit

Permalink
cleanup the /tmp folder to save 2.5Mo
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedelhabib committed Apr 6, 2024
1 parent e5ffb12 commit d4c4ed3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion 18/alpine3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -rf /tmp/*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
3 changes: 2 additions & 1 deletion 18/alpine3.19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -rf /tmp/*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
3 changes: 2 additions & 1 deletion 20/alpine3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -rf /tmp/*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
3 changes: 2 additions & 1 deletion 20/alpine3.19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -rf /tmp/*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
3 changes: 2 additions & 1 deletion 21/alpine3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -rf /tmp/*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
3 changes: 2 additions & 1 deletion 21/alpine3.19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -rf /tmp/*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 -rf /tmp/*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down

0 comments on commit d4c4ed3

Please sign in to comment.