You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing docker image with new Nodejs version 20.18.2(release on Jan 21st,2025) and Alpine version 3.21 should successfully execute Docker_Buildkit command and build docker image.
Current Behavior
Installing docker image with new Nodejs version 20.18.2(release on Jan 21st,2025) and Alpine version 3.21 is failing with below error
ERROR [internal] load metadata for docker.io/library/node:20.18.2-alpine3.21
Possible Solution
Nodejs has released this new version 20.18.2 with security fix, I think Alpine should also with new software supporting the fix.
Steps to Reproduce
Build docker image with below code
ARG 3.19
ARG 2.18.2
FROM node:${VERSION_NODE}-alpine${VERSION_ALPINE} as build
RUN apk --no-cache add
git
openssh-client
tini
&& mkdir -p -m 0600 ~/.ssh && ssh-keyscan bitbucket.org >> ~/.ssh/known_hosts
WORKDIR /srv
COPY package*.json ./
RUN --mount=type=ssh npm ci --only=production
FROM node:${VERSION_NODE}-alpine${VERSION_ALPINE} as run
ARG PORT
ENV PORT=${PORT:-3000}
USER node
WORKDIR /home/node/srv
COPY --from=build --chown=node:node /sbin/tini ../bin/tini
COPY --from=build --chown=node:node /srv .
COPY --chown=node:node . .
EXPOSE $PORT
ENTRYPOINT ["/home/node/bin/tini", "--"]
CMD [ "node", "server.js" ]
Additional Information
The text was updated successfully, but these errors were encountered:
Environment
Expected Behavior
Installing docker image with new Nodejs version 20.18.2(release on Jan 21st,2025) and Alpine version 3.21 should successfully execute Docker_Buildkit command and build docker image.
Current Behavior
Installing docker image with new Nodejs version 20.18.2(release on Jan 21st,2025) and Alpine version 3.21 is failing with below error
ERROR [internal] load metadata for docker.io/library/node:20.18.2-alpine3.21
Possible Solution
Nodejs has released this new version 20.18.2 with security fix, I think Alpine should also with new software supporting the fix.
Steps to Reproduce
ARG 3.19
ARG 2.18.2
FROM node:${VERSION_NODE}-alpine${VERSION_ALPINE} as build
RUN apk --no-cache add
git
openssh-client
tini
&& mkdir -p -m 0600 ~/.ssh && ssh-keyscan bitbucket.org >> ~/.ssh/known_hosts
WORKDIR /srv
COPY package*.json ./
RUN --mount=type=ssh npm ci --only=production
FROM node:${VERSION_NODE}-alpine${VERSION_ALPINE} as run
ARG PORT
ENV PORT=${PORT:-3000}
USER node
WORKDIR /home/node/srv
COPY --from=build --chown=node:node /sbin/tini ../bin/tini
COPY --from=build --chown=node:node /srv .
COPY --chown=node:node . .
EXPOSE $PORT
ENTRYPOINT ["/home/node/bin/tini", "--"]
CMD [ "node", "server.js" ]
Additional Information
The text was updated successfully, but these errors were encountered: