Skip to content

Commit a49dadd

Browse files
authored
ci: Update base.Dockerfile
1 parent 3ae3f3a commit a49dadd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docker/base.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ FROM python:3.9-bullseye
22
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>"
33

44
ENV DEBIAN_FRONTEND=noninteractive
5+
ENV NODE_MAJOR=16
56

67
# Update system packages
78
RUN apt-get update \
89
&& apt-get -qy upgrade \
910
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1
1011

1112
# Add Node.js Source
12-
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
13+
RUN apt-get install -y --no-install-recommends ca-certificates curl gnupg \
14+
&& mkdir -p /etc/apt/keyrings\
15+
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
16+
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
1317

1418
# Add Docker Source
1519
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

0 commit comments

Comments
 (0)