Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodejs new version 20.18.2 is not working with Alpine 3.21 #2188

Closed
sirishakonyala123 opened this issue Jan 22, 2025 · 1 comment
Closed

Comments

@sirishakonyala123
Copy link

Environment

  • Platform: Windows
  • Docker Version:4.28.1
  • Node.js Version:20.18.2
    • Alpine Version:3.21
  • Image Tag:

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

  1. 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

@nschonni
Copy link
Member

The images haven't been updated yet #2184 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants