diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 0f68113..a6840cd 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -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 \ @@ -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} diff --git a/debian/Dockerfile b/debian/Dockerfile index 955cb2f..a390c4a 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -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 \