Skip to content

Commit

Permalink
feat: nodejs 22.13.1 alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
snowdream committed Feb 8, 2025
1 parent 67aab01 commit a4b2dc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ LABEL org.opencontainers.image.authors="Snowdream Tech" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/snowdreamtech/node" \
org.opencontainers.image.vendor="Snowdream Tech" \
org.opencontainers.image.version="18.20.1" \
org.opencontainers.image.version="22.13.1" \
org.opencontainers.image.url="https://github.com/snowdreamtech/node"

# keep the docker container running
ENV KEEPALIVE=0 \
NODEJS_VERSION=18.20.1-r0
NODEJS_VERSION=22.13.1-r0

ARG GID=1000 \
UID=1000 \
Expand All @@ -28,13 +28,11 @@ RUN if [ "${USER}" != "root" ]; then \
# sed -i "/%sudo/c ${USER} ALL=(ALL:ALL) NOPASSWD:ALL" /etc/sudoers; \
fi

RUN echo "@3.18main https://dl-cdn.alpinelinux.org/alpine/v3.18/main" | tee -a /etc/apk/repositories \
&& echo "@3.18community https://dl-cdn.alpinelinux.org/alpine/v3.18/community" | tee -a /etc/apk/repositories \
&& apk add --no-cache \
nodejs@3.18main=${NODEJS_VERSION}\
npm@3.18main \
pnpm@3.18community \
yarn@3.18main
RUN apk add --no-cache \
nodejs=${NODEJS_VERSION}\
npm \
pnpm@community \
yarn

# Switch to the user
USER ${USER}
Expand Down
2 changes: 1 addition & 1 deletion debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.authors="Snowdream Tech" \

# keep the docker container running
ENV KEEPALIVE=1 \
NODEJS_VERSION=18.19.0+dfsg-6~deb12u2
NODEJS_VERSION=18.19.0+dfsg-6~deb12u2

ARG GID=1000 \
UID=1000 \
Expand Down

0 comments on commit a4b2dc4

Please sign in to comment.