Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit f1862f8

Browse files
committed
fix nodejs install
1 parent bb656c8 commit f1862f8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

images/base/Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:20.04
22

33
ARG UBUNTU_VERSION=20.04
44
ARG DEBIAN_FRONTEND=noninteractive
5-
ARG PACKAGES="libffi-dev libicu-dev build-essential libssl-dev ca-certificates software-properties-common jq sed grep git curl wget zip python3-pip nodejs"
5+
ARG PACKAGES="libffi-dev libicu-dev build-essential libssl-dev ca-certificates software-properties-common jq sed grep git curl wget zip python3-pip"
66

77
ENV USERNAME="runner"
88
ENV USERID=1000
@@ -26,20 +26,24 @@ RUN mkdir /helper-scripts \
2626
&& mkdir -p /kaniko/workspace
2727

2828
# Copy image helper scripts
29-
ADD ./helper-scripts/detect-setup.sh /helper-scripts/detect-setup.sh
30-
ADD ./helper-scripts/gh-entrypoint.sh /helper-scripts/gh-entrypoint.sh
31-
ADD ./helper-scripts/kaniko-wrapper.sh /helper-scripts/kaniko-wrapper.sh
32-
ADD ./helper-scripts/translate-aarch.sh /helper-scripts/translate-aarch.sh
29+
ADD ./helper-scripts/ /helper-scripts/
3330

3431
RUN chmod -R 755 /helper-scripts
3532

3633
# install packages along with jq so we can parse JSON
3734
# add additional packages as necessary
3835
RUN apt-get update \
36+
&& curl -sL https://deb.nodesource.com/setup_lts.x | bash - \
3937
&& apt-get install -y ${PACKAGES} \
4038
&& rm -rf /var/lib/apt/lists/* \
4139
&& apt-get clean
4240

41+
# install nodejs
42+
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - \
43+
&& apt-get install -y nodejs \
44+
&& rm -rf /var/lib/apt/lists/* \
45+
&& apt-get clean
46+
4347
# install awesoeme ci
4448
RUN export ARCH=$(/helper-scripts/translate-aarch.sh a-short) \
4549
&& curl -L -O https://github.com/fullstack-devops/awesome-ci/releases/download/${AWESOME_CI_VERSION}/awesome-ci_${AWESOME_CI_VERSION}_linux-${ARCH} \

0 commit comments

Comments
 (0)