Skip to content

Commit 6e57cb4

Browse files
marjinaveenvalecha
authored andcommitted
Added node v18.19.0 into the image.
1 parent 0046040 commit 6e57cb4

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@ RUN apk add --no-cache --update git \
2424
&& chmod +x /usr/local/bin/composer \
2525
&& echo 'memory_limit = ${PHP_MEMORY_LIMIT}' > /usr/local/etc/php/conf.d/memory-limit.ini
2626

27+
# Remove warning about running as root in composer
28+
ENV COMPOSER_ALLOW_SUPERUSER=1
29+
30+
### Install node
31+
32+
ENV NODE_VERSION=18.19.0 \
33+
CHECKSUM=10b7b23b6b867a25f060a433b83f5c3ecb3bcf7cdba1c0ce46443065a832fd41
34+
35+
RUN ARCH='x64'; \
36+
set -eu; \
37+
apk add --no-cache \
38+
libstdc++ \
39+
&& curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \
40+
&& echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - \
41+
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
42+
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
43+
&& node --version \
44+
&& npm --version
45+
2746
RUN adduser -D -h /home/runner -u $RUNNER_UID runner
2847

2948
USER runner

0 commit comments

Comments
 (0)