From b24985022ab9012bdcca6ae4258154831b723c0a Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 22 Oct 2021 14:41:47 +0300 Subject: [PATCH] feat: add Node.js 17 image --- .github/workflows/nodejs.yml | 1 + README.md | 2 ++ nodejs/17/Dockerfile | 15 +++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 nodejs/17/Dockerfile diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2db42d2..130be91 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -20,6 +20,7 @@ jobs: - 14 - 15 - 16 + - 17 steps: - uses: actions/checkout@v2 - uses: docker/setup-buildx-action@v1 diff --git a/README.md b/README.md index d54eb96..c031664 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,8 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:nodejs_15` * [`node16`](/nodejs/16) * `ghcr.io/parkervcp/yolks:nodejs_16` + * [`node16`](/nodejs/17) + * `ghcr.io/parkervcp/yolks:nodejs_17` ### [Python](/python) * [`python3.7`](/python/3.7) * `ghcr.io/parkervcp/yolks:python_3.7` diff --git a/nodejs/17/Dockerfile b/nodejs/17/Dockerfile new file mode 100644 index 0000000..0ea4c7d --- /dev/null +++ b/nodejs/17/Dockerfile @@ -0,0 +1,15 @@ +FROM node:17-buster-slim + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +RUN apt update \ + && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential \ + && npm -g install npm@latest \ + && useradd -m -d /home/container container + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./../entrypoint.sh /entrypoint.sh +CMD [ "/bin/bash", "/entrypoint.sh" ]