feat: add image with nodejs
All checks were successful
release / deploy (push) Successful in 55s

This commit is contained in:
2023-12-03 00:44:21 +01:00
parent 4e44cba3a3
commit 5f84654075
3 changed files with 14 additions and 3 deletions

6
Dockerfile.nodejs Normal file
View File

@@ -0,0 +1,6 @@
ARG BASE_IMAGE
FROM $BASE_IMAGE
RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_21.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install -y nodejs && rm -rf /var/cache/apt*