Skip to content

Commit

Permalink
feat(node): add node 20,21
Browse files Browse the repository at this point in the history
  • Loading branch information
Software-Noob committed Nov 12, 2023
1 parent 31ae4e9 commit f34911b
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
- 17
- 18
- 19
- 20
- 21
steps:
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ These are nightly builds. Shenandoah GC is by default shipped with Azul, Corrett
- `ghcr.io/software-noob/pterodactyl-images:nodejs_18`
- [Nodejs 19](https://github.com/Software-Noob/pterodactyl-images/tree/main/nodejs/19)
- `ghcr.io/software-noob/pterodactyl-images:nodejs_19`
- [Nodejs 20](https://github.com/Software-Noob/pterodactyl-images/tree/main/nodejs/20)
- `ghcr.io/software-noob/pterodactyl-images:nodejs_20`
- [Nodejs 21](https://github.com/Software-Noob/pterodactyl-images/tree/main/nodejs/21)
- `ghcr.io/software-noob/pterodactyl-images:nodejs_21`

### Python [AMD64/ARM64]

Expand Down
24 changes: 24 additions & 0 deletions nodejs/20/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:20-bullseye-slim

LABEL author="Softwarenoob" maintainer="admin@softwarenoob.com"
LABEL org.opencontainers.image.source="https://github.com/Software-Noob/pterodactyl-images"
LABEL org.opencontainers.image.licenses="MIT"

RUN apt-get update \
&& apt-get -y install --no-install-recommends curl ffmpeg iproute2 git sqlite3 python3 tzdata ca-certificates dnsutils build-essential locales \
&& npm -g install npm@latest \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -m -d /home/container container \
&& locale-gen en_US.UTF-8

ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]
24 changes: 24 additions & 0 deletions nodejs/21/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:21-bullseye-slim

LABEL author="Softwarenoob" maintainer="admin@softwarenoob.com"
LABEL org.opencontainers.image.source="https://github.com/Software-Noob/pterodactyl-images"
LABEL org.opencontainers.image.licenses="MIT"

RUN apt-get update \
&& apt-get -y install --no-install-recommends curl ffmpeg iproute2 git sqlite3 python3 tzdata ca-certificates dnsutils build-essential locales \
&& npm -g install npm@latest \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -m -d /home/container container \
&& locale-gen en_US.UTF-8

ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]

0 comments on commit f34911b

Please sign in to comment.