Skip to content

Commit

Permalink
minor image cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Demin <[email protected]>
  • Loading branch information
rockdrilla committed Apr 10, 2023
1 parent f8184eb commit 625f899
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ RUN addgroup -g 1000 node \
&& apk del .build-deps \
# smoke tests
&& node --version \
&& npm --version
&& npm --version \
# cleanup
&& rm -rf /root/.gnupg /root/.npm

ENV YARN_VERSION 0.0.0

Expand All @@ -80,7 +82,9 @@ 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 \
# cleanup
&& rm -rf /root/.gnupg /tmp/v8-compile-cache-*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
# smoke tests
&& node --version \
&& npm --version
&& npm --version \
# cleanup
&& rm -rf /root/.gnupg /root/.npm

ENV YARN_VERSION 0.0.0

Expand All @@ -52,7 +54,9 @@ RUN set -ex \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
# smoke test
&& yarn --version
&& yarn --version \
# cleanup
&& rm -rf /root/.gnupg /tmp/v8-compile-cache-*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile-slim.template
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
# smoke tests
&& node --version \
&& npm --version
&& npm --version \
# cleanup
&& rm -rf /root/.gnupg /root/.npm

ENV YARN_VERSION 0.0.0

Expand Down Expand Up @@ -76,7 +78,9 @@ RUN set -ex \
| xargs -r apt-mark manual \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
# smoke test
&& yarn --version
&& yarn --version \
# cleanup
&& rm -rf /root/.gnupg /tmp/v8-compile-cache-*

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

0 comments on commit 625f899

Please sign in to comment.