Skip to content

Commit d5d36cb

Browse files
authored
Merge pull request #1882 from smorimoto/node20
feat: Node.js 20.0.0
2 parents 204ec8f + 2ba234d commit d5d36cb

File tree

13 files changed

+635
-0
lines changed

13 files changed

+635
-0
lines changed

20/alpine3.16/Dockerfile

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
FROM alpine:3.16
2+
3+
ENV NODE_VERSION 20.0.0
4+
5+
RUN addgroup -g 1000 node \
6+
&& adduser -u 1000 -G node -s /bin/sh -D node \
7+
&& apk add --no-cache \
8+
libstdc++ \
9+
&& apk add --no-cache --virtual .build-deps \
10+
curl \
11+
&& ARCH= && alpineArch="$(apk --print-arch)" \
12+
&& case "${alpineArch##*-}" in \
13+
x86_64) \
14+
ARCH='x64' \
15+
CHECKSUM="8a637ef2fbac8c50b08129b8cbd80a8175a3d6c8b06615de100170d795af8668" \
16+
;; \
17+
*) ;; \
18+
esac \
19+
&& if [ -n "${CHECKSUM}" ]; then \
20+
set -eu; \
21+
curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; \
22+
echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - \
23+
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
24+
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs; \
25+
else \
26+
echo "Building from source" \
27+
# backup build
28+
&& apk add --no-cache --virtual .build-deps-full \
29+
binutils-gold \
30+
g++ \
31+
gcc \
32+
gnupg \
33+
libgcc \
34+
linux-headers \
35+
make \
36+
python3 \
37+
# gpg keys listed at https://github.com/nodejs/node#release-keys
38+
&& for key in \
39+
4ED778F539E3634C779C87C6D7062848A1AB005C \
40+
141F07595B7B3FFE74309A937405533BE57C7D57 \
41+
74F12602B6F1C4E913FAA37AD3A89613643B6201 \
42+
DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 \
43+
61FC681DFB92A079F1685E77973F295594EC4689 \
44+
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
45+
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
46+
890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 \
47+
C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \
48+
108F52B48DB57BB0CC439B2997B01419BD92F80A \
49+
; do \
50+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
51+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
52+
done \
53+
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" \
54+
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
55+
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
56+
&& grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
57+
&& tar -xf "node-v$NODE_VERSION.tar.xz" \
58+
&& cd "node-v$NODE_VERSION" \
59+
&& ./configure \
60+
&& make -j$(getconf _NPROCESSORS_ONLN) V= \
61+
&& make install \
62+
&& apk del .build-deps-full \
63+
&& cd .. \
64+
&& rm -Rf "node-v$NODE_VERSION" \
65+
&& rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; \
66+
fi \
67+
&& rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \
68+
&& apk del .build-deps \
69+
# smoke tests
70+
&& node --version \
71+
&& npm --version
72+
73+
ENV YARN_VERSION 1.22.19
74+
75+
RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
76+
&& for key in \
77+
6A010C5166006599AA17F08146C2130DFD2497F5 \
78+
; do \
79+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
80+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
81+
done \
82+
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
83+
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
84+
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
85+
&& mkdir -p /opt \
86+
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
87+
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
88+
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
89+
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
90+
&& apk del .build-deps-yarn \
91+
# smoke test
92+
&& yarn --version
93+
94+
COPY docker-entrypoint.sh /usr/local/bin/
95+
ENTRYPOINT ["docker-entrypoint.sh"]
96+
97+
CMD [ "node" ]

20/alpine3.16/docker-entrypoint.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -e
3+
4+
# Run command with node if the first argument contains a "-" or is not a system command. The last
5+
# part inside the "{}" is a workaround for the following bug in ash/dash:
6+
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then
8+
set -- node "$@"
9+
fi
10+
11+
exec "$@"

20/alpine3.17/Dockerfile

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
FROM alpine:3.17
2+
3+
ENV NODE_VERSION 20.0.0
4+
5+
RUN addgroup -g 1000 node \
6+
&& adduser -u 1000 -G node -s /bin/sh -D node \
7+
&& apk add --no-cache \
8+
libstdc++ \
9+
&& apk add --no-cache --virtual .build-deps \
10+
curl \
11+
&& ARCH= && alpineArch="$(apk --print-arch)" \
12+
&& case "${alpineArch##*-}" in \
13+
x86_64) \
14+
ARCH='x64' \
15+
CHECKSUM="8a637ef2fbac8c50b08129b8cbd80a8175a3d6c8b06615de100170d795af8668" \
16+
;; \
17+
*) ;; \
18+
esac \
19+
&& if [ -n "${CHECKSUM}" ]; then \
20+
set -eu; \
21+
curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; \
22+
echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - \
23+
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
24+
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs; \
25+
else \
26+
echo "Building from source" \
27+
# backup build
28+
&& apk add --no-cache --virtual .build-deps-full \
29+
binutils-gold \
30+
g++ \
31+
gcc \
32+
gnupg \
33+
libgcc \
34+
linux-headers \
35+
make \
36+
python3 \
37+
# gpg keys listed at https://github.com/nodejs/node#release-keys
38+
&& for key in \
39+
4ED778F539E3634C779C87C6D7062848A1AB005C \
40+
141F07595B7B3FFE74309A937405533BE57C7D57 \
41+
74F12602B6F1C4E913FAA37AD3A89613643B6201 \
42+
DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 \
43+
61FC681DFB92A079F1685E77973F295594EC4689 \
44+
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
45+
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
46+
890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 \
47+
C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \
48+
108F52B48DB57BB0CC439B2997B01419BD92F80A \
49+
; do \
50+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
51+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
52+
done \
53+
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" \
54+
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
55+
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
56+
&& grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
57+
&& tar -xf "node-v$NODE_VERSION.tar.xz" \
58+
&& cd "node-v$NODE_VERSION" \
59+
&& ./configure \
60+
&& make -j$(getconf _NPROCESSORS_ONLN) V= \
61+
&& make install \
62+
&& apk del .build-deps-full \
63+
&& cd .. \
64+
&& rm -Rf "node-v$NODE_VERSION" \
65+
&& rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; \
66+
fi \
67+
&& rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \
68+
&& apk del .build-deps \
69+
# smoke tests
70+
&& node --version \
71+
&& npm --version
72+
73+
ENV YARN_VERSION 1.22.19
74+
75+
RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
76+
&& for key in \
77+
6A010C5166006599AA17F08146C2130DFD2497F5 \
78+
; do \
79+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
80+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
81+
done \
82+
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
83+
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
84+
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
85+
&& mkdir -p /opt \
86+
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
87+
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
88+
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
89+
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
90+
&& apk del .build-deps-yarn \
91+
# smoke test
92+
&& yarn --version
93+
94+
COPY docker-entrypoint.sh /usr/local/bin/
95+
ENTRYPOINT ["docker-entrypoint.sh"]
96+
97+
CMD [ "node" ]

20/alpine3.17/docker-entrypoint.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -e
3+
4+
# Run command with node if the first argument contains a "-" or is not a system command. The last
5+
# part inside the "{}" is a workaround for the following bug in ash/dash:
6+
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then
8+
set -- node "$@"
9+
fi
10+
11+
exec "$@"

20/bullseye-slim/Dockerfile

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
FROM debian:bullseye-slim
2+
3+
RUN groupadd --gid 1000 node \
4+
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5+
6+
ENV NODE_VERSION 20.0.0
7+
8+
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
9+
&& case "${dpkgArch##*-}" in \
10+
amd64) ARCH='x64';; \
11+
ppc64el) ARCH='ppc64le';; \
12+
s390x) ARCH='s390x';; \
13+
arm64) ARCH='arm64';; \
14+
armhf) ARCH='armv7l';; \
15+
i386) ARCH='x86';; \
16+
*) echo "unsupported architecture"; exit 1 ;; \
17+
esac \
18+
&& set -ex \
19+
# libatomic1 for arm
20+
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends \
21+
&& rm -rf /var/lib/apt/lists/* \
22+
&& for key in \
23+
4ED778F539E3634C779C87C6D7062848A1AB005C \
24+
141F07595B7B3FFE74309A937405533BE57C7D57 \
25+
74F12602B6F1C4E913FAA37AD3A89613643B6201 \
26+
DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 \
27+
61FC681DFB92A079F1685E77973F295594EC4689 \
28+
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
29+
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
30+
890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 \
31+
C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \
32+
108F52B48DB57BB0CC439B2997B01419BD92F80A \
33+
; do \
34+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
35+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
36+
done \
37+
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \
38+
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
39+
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
40+
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
41+
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
42+
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
43+
&& apt-mark auto '.*' > /dev/null \
44+
&& find /usr/local -type f -executable -exec ldd '{}' ';' \
45+
| awk '/=>/ { print $(NF-1) }' \
46+
| sort -u \
47+
| xargs -r dpkg-query --search \
48+
| cut -d: -f1 \
49+
| sort -u \
50+
| xargs -r apt-mark manual \
51+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
52+
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
53+
# smoke tests
54+
&& node --version \
55+
&& npm --version
56+
57+
ENV YARN_VERSION 1.22.19
58+
59+
RUN set -ex \
60+
&& savedAptMark="$(apt-mark showmanual)" \
61+
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends \
62+
&& rm -rf /var/lib/apt/lists/* \
63+
&& for key in \
64+
6A010C5166006599AA17F08146C2130DFD2497F5 \
65+
; do \
66+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
67+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
68+
done \
69+
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
70+
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
71+
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
72+
&& mkdir -p /opt \
73+
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
74+
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
75+
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
76+
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
77+
&& apt-mark auto '.*' > /dev/null \
78+
&& { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; } \
79+
&& find /usr/local -type f -executable -exec ldd '{}' ';' \
80+
| awk '/=>/ { print $(NF-1) }' \
81+
| sort -u \
82+
| xargs -r dpkg-query --search \
83+
| cut -d: -f1 \
84+
| sort -u \
85+
| xargs -r apt-mark manual \
86+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
87+
# smoke test
88+
&& yarn --version
89+
90+
COPY docker-entrypoint.sh /usr/local/bin/
91+
ENTRYPOINT ["docker-entrypoint.sh"]
92+
93+
CMD [ "node" ]

20/bullseye-slim/docker-entrypoint.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -e
3+
4+
# Run command with node if the first argument contains a "-" or is not a system command. The last
5+
# part inside the "{}" is a workaround for the following bug in ash/dash:
6+
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then
8+
set -- node "$@"
9+
fi
10+
11+
exec "$@"

20/bullseye/Dockerfile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
FROM buildpack-deps:bullseye
2+
3+
RUN groupadd --gid 1000 node \
4+
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5+
6+
ENV NODE_VERSION 20.0.0
7+
8+
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
9+
&& case "${dpkgArch##*-}" in \
10+
amd64) ARCH='x64';; \
11+
ppc64el) ARCH='ppc64le';; \
12+
s390x) ARCH='s390x';; \
13+
arm64) ARCH='arm64';; \
14+
armhf) ARCH='armv7l';; \
15+
i386) ARCH='x86';; \
16+
*) echo "unsupported architecture"; exit 1 ;; \
17+
esac \
18+
# gpg keys listed at https://github.com/nodejs/node#release-keys
19+
&& set -ex \
20+
&& for key in \
21+
4ED778F539E3634C779C87C6D7062848A1AB005C \
22+
141F07595B7B3FFE74309A937405533BE57C7D57 \
23+
74F12602B6F1C4E913FAA37AD3A89613643B6201 \
24+
DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 \
25+
61FC681DFB92A079F1685E77973F295594EC4689 \
26+
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
27+
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
28+
890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 \
29+
C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \
30+
108F52B48DB57BB0CC439B2997B01419BD92F80A \
31+
; do \
32+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
33+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
34+
done \
35+
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \
36+
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
37+
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
38+
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
39+
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
40+
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
41+
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
42+
# smoke tests
43+
&& node --version \
44+
&& npm --version
45+
46+
ENV YARN_VERSION 1.22.19
47+
48+
RUN set -ex \
49+
&& for key in \
50+
6A010C5166006599AA17F08146C2130DFD2497F5 \
51+
; do \
52+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
53+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
54+
done \
55+
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
56+
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
57+
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
58+
&& mkdir -p /opt \
59+
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
60+
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
61+
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
62+
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
63+
# smoke test
64+
&& yarn --version
65+
66+
COPY docker-entrypoint.sh /usr/local/bin/
67+
ENTRYPOINT ["docker-entrypoint.sh"]
68+
69+
CMD [ "node" ]

0 commit comments

Comments
 (0)