Skip to content

Commit

Permalink
Add NodeJS 22
Browse files Browse the repository at this point in the history
  • Loading branch information
danny6167 committed Dec 30, 2024
1 parent 80a6b1d commit 68b6c4f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ is tagged correctly.
* `ghcr.io/ptero-eggs/yolks:nodejs_20`
* [`node21`](/nodejs/21)
* `ghcr.io/ptero-eggs/yolks:nodejs_21`

* [`node22`](/nodejs/22)
* `ghcr.io/ptero-eggs/yolks:nodejs_22`

### [PostgreSQL](/postgres)

* [`Postgres 9`](/postgres/9)
Expand Down
20 changes: 20 additions & 0 deletions nodejs/22/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM --platform=$TARGETOS/$TARGETARCH node:22-bookworm-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 libnss3 tini \
&& useradd -m -d /home/container container

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

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

STOPSIGNAL SIGINT

COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]

0 comments on commit 68b6c4f

Please sign in to comment.