Skip to content

Commit

Permalink
minor image cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
  • Loading branch information
rockdrilla committed Apr 10, 2023
1 parent f8184eb commit 5387b51
Show file tree
Hide file tree
Showing 27 changed files with 162 additions and 54 deletions.
8 changes: 6 additions & 2 deletions 14/alpine3.16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,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 1.22.19

Expand All @@ -88,7 +90,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 14/alpine3.17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,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 1.22.19

Expand All @@ -88,7 +90,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 14/bullseye-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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 1.22.19

Expand Down Expand Up @@ -84,7 +86,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
8 changes: 6 additions & 2 deletions 14/bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,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 1.22.19

Expand All @@ -60,7 +62,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 14/buster-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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 1.22.19

Expand Down Expand Up @@ -84,7 +86,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
8 changes: 6 additions & 2 deletions 14/buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,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 1.22.19

Expand All @@ -60,7 +62,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 16/alpine3.16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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 1.22.19

Expand All @@ -89,7 +91,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 16/alpine3.17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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 1.22.19

Expand All @@ -89,7 +91,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 16/bullseye-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 1.22.19

Expand Down Expand Up @@ -85,7 +87,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
8 changes: 6 additions & 2 deletions 16/bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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 1.22.19

Expand All @@ -61,7 +63,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 16/buster-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 1.22.19

Expand Down Expand Up @@ -85,7 +87,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
8 changes: 6 additions & 2 deletions 16/buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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 1.22.19

Expand All @@ -61,7 +63,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 18/alpine3.16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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 1.22.19

Expand All @@ -89,7 +91,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 18/alpine3.17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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 1.22.19

Expand All @@ -89,7 +91,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 18/bullseye-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 1.22.19

Expand Down Expand Up @@ -85,7 +87,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
8 changes: 6 additions & 2 deletions 18/bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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 1.22.19

Expand All @@ -61,7 +63,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 18/buster-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 1.22.19

Expand Down Expand Up @@ -85,7 +87,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
8 changes: 6 additions & 2 deletions 18/buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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 1.22.19

Expand All @@ -61,7 +63,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
Loading

0 comments on commit 5387b51

Please sign in to comment.