Skip to content

Commit

Permalink
Add libnss3 to nodejs (pelican-eggs#183)
Browse files Browse the repository at this point in the history
* Add libnss3 to nodejs
* Lock down some npm version

---------

Co-authored-by: Quinten <[email protected]>
  • Loading branch information
Paultje52 and QuintenQVD0 authored Sep 6, 2023
1 parent cafdcdc commit 02aad51
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions nodejs/12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:12-bullseye-slim
LABEL author="Michael Parker" maintainer="[email protected]"

RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 \
&& useradd -m -d /home/container container

RUN npm install npm@latest typescript ts-node @types/node --location=global
RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global

USER container
ENV USER=container HOME=/home/container
Expand Down
5 changes: 2 additions & 3 deletions nodejs/14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ FROM --platform=$TARGETOS/$TARGETARCH node:14-bullseye-slim
LABEL author="Michael Parker" maintainer="[email protected]"

RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping \
&& useradd -m -d /home/container container
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 \ && useradd -m -d /home/container container

RUN npm install npm@latest typescript ts-node @types/node --location=global
RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global

USER container
ENV USER=container HOME=/home/container
Expand Down
4 changes: 2 additions & 2 deletions nodejs/16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:16-bullseye-slim
LABEL author="Michael Parker" maintainer="[email protected]"

RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 \
&& useradd -m -d /home/container container

RUN npm install npm@latest typescript ts-node @types/node --location=global
RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global

USER container
ENV USER=container HOME=/home/container
Expand Down
2 changes: 1 addition & 1 deletion nodejs/17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM --platform=$TARGETOS/$TARGETARCH node:17-bullseye-slim
LABEL author="Michael Parker" maintainer="[email protected]"

RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 libnss3 \
&& useradd -m -d /home/container container

RUN npm install [email protected] typescript ts-node @types/node --location=global
Expand Down
4 changes: 2 additions & 2 deletions nodejs/18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:18-bullseye-slim
LABEL author="Michael Parker" maintainer="[email protected]"

RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 \
&& useradd -m -d /home/container container

RUN npm install npm@latest typescript ts-node @types/node --location=global
RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global

USER container
ENV USER=container HOME=/home/container
Expand Down
4 changes: 2 additions & 2 deletions nodejs/19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM --platform=$TARGETOS/$TARGETARCH node:19-bullseye-slim
LABEL author="Michael Parker" maintainer="[email protected]"

RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 \
&& useradd -m -d /home/container container

RUN npm install npm@latest typescript ts-node @types/node --location=global
RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global

USER container
ENV USER=container HOME=/home/container
Expand Down
2 changes: 1 addition & 1 deletion nodejs/20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM --platform=$TARGETOS/$TARGETARCH node:20-bullseye-slim
LABEL author="Michael Parker" maintainer="[email protected]"

RUN apt update \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping \
&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 \
&& useradd -m -d /home/container container

RUN npm install npm@latest typescript ts-node @types/node --location=global
Expand Down

0 comments on commit 02aad51

Please sign in to comment.