File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
2746RUN adduser -D -h /home/runner -u $RUNNER_UID runner
2847
2948USER runner
You can’t perform that action at this time.
0 commit comments