Skip to content

Commit

Permalink
Install nvm as runner
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hellhake committed Jun 8, 2024
1 parent 61350e2 commit aa2b886
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions toolchain/linux-arm/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ RUN apt update && \
sudo \
zlib1g-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
rm -rf /var/lib/apt/lists/*
RUN useradd -u 1001 -m runner
USER runner
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
bash -c "export NVM_DIR=\${HOME}/.nvm && \
source \${NVM_DIR}/nvm.sh && \
nvm install ${NODE_VERSION} && \
Expand All @@ -34,4 +36,3 @@ RUN apt update && \
npm config -g set cache /tmp/.npm && \
nvm install-latest-npm && \
nvm cache clear"
RUN useradd -u 1001 runner
7 changes: 4 additions & 3 deletions toolchain/linux-arm64/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ RUN apt update && \
sudo \
zlib1g-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
rm -rf /var/lib/apt/lists/*
RUN useradd -u 1001 -m runner
USER runner
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
bash -c "export NVM_DIR=\${HOME}/.nvm && \
source \${NVM_DIR}/nvm.sh && \
nvm install ${NODE_VERSION} && \
Expand All @@ -34,4 +36,3 @@ RUN apt update && \
npm config -g set cache /tmp/.npm && \
nvm install-latest-npm && \
nvm cache clear"
RUN useradd -u 1001 runner
7 changes: 4 additions & 3 deletions toolchain/linux-x64/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ RUN apt update && \
sudo \
zlib1g-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
rm -rf /var/lib/apt/lists/*
RUN useradd -u 1001 -m runner
USER runner
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
bash -c "export NVM_DIR=\${HOME}/.nvm && \
source \${NVM_DIR}/nvm.sh && \
nvm install ${NODE_VERSION} && \
Expand All @@ -34,4 +36,3 @@ RUN apt update && \
npm config -g set cache /tmp/.npm && \
nvm install-latest-npm && \
nvm cache clear"
RUN useradd -u 1001 runner

0 comments on commit aa2b886

Please sign in to comment.