Skip to content

Commit

Permalink
use apt-mark strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jan 8, 2020
1 parent 7ea4a0a commit 96ebc38
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 64 deletions.
16 changes: 8 additions & 8 deletions 10/buster-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN groupadd --gid 1000 node \

ENV NODE_VERSION 10.18.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
Expand All @@ -17,7 +16,7 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
Expand All @@ -42,14 +41,14 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 1.21.1

RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
RUN set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
Expand All @@ -66,7 +65,8 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
16 changes: 8 additions & 8 deletions 10/jessie-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN groupadd --gid 1000 node \

ENV NODE_VERSION 10.18.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
Expand All @@ -17,7 +16,7 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
Expand All @@ -42,14 +41,14 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 1.21.1

RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
RUN set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
Expand All @@ -66,7 +65,8 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
16 changes: 8 additions & 8 deletions 10/stretch-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN groupadd --gid 1000 node \

ENV NODE_VERSION 10.18.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
Expand All @@ -17,7 +16,7 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
Expand All @@ -42,14 +41,14 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 1.21.1

RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
RUN set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
Expand All @@ -66,7 +65,8 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
16 changes: 8 additions & 8 deletions 12/buster-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN groupadd --gid 1000 node \

ENV NODE_VERSION 12.14.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
Expand All @@ -17,7 +16,7 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
Expand All @@ -42,14 +41,14 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 1.21.1

RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
RUN set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
Expand All @@ -66,7 +65,8 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
16 changes: 8 additions & 8 deletions 12/stretch-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN groupadd --gid 1000 node \

ENV NODE_VERSION 12.14.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
Expand All @@ -17,7 +16,7 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
Expand All @@ -42,14 +41,14 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 1.21.1

RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
RUN set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
Expand All @@ -66,7 +65,8 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
16 changes: 8 additions & 8 deletions 13/buster-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN groupadd --gid 1000 node \

ENV NODE_VERSION 13.5.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
Expand All @@ -17,7 +16,7 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
Expand All @@ -42,14 +41,14 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 1.21.1

RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
RUN set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
Expand All @@ -66,7 +65,8 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
16 changes: 8 additions & 8 deletions 13/stretch-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN groupadd --gid 1000 node \

ENV NODE_VERSION 13.5.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
Expand All @@ -17,7 +16,7 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
Expand All @@ -42,14 +41,14 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 1.21.1

RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
RUN set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
Expand All @@ -66,7 +65,8 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down
16 changes: 8 additions & 8 deletions Dockerfile-slim.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN groupadd --gid 1000 node \

ENV NODE_VERSION 0.0.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
Expand All @@ -17,7 +16,7 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
"${NODE_KEYS[@]}"
Expand All @@ -32,14 +31,14 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr xz-utils' \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 0.0.0

RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& set -ex \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
RUN set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
"${YARN_KEYS[@]}"
Expand All @@ -56,7 +55,8 @@ RUN buildDeps='ca-certificates curl wget gnupg dirmngr' \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& 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 \
&& apt-get purge -y --auto-remove $buildDeps
&& apt-mark auto '.*' > /dev/null \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

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

0 comments on commit 96ebc38

Please sign in to comment.