Skip to content

18 and 20 node images give error - Text file busy (after re-build images) #1968

Description

@whidrubeld

Environment

  • Platform: Ubuntu
  • Docker Version: 23.0.1, build a5ee5b1
  • Node.js Version: -
  • Image Tag: lts, lts-slim, lts-alpine, 18, 18.18.0, 18-slim, 20-slim, 20-alpine

Expected Behavior

Successfully running docker run command for Next 13 project

Current Behavior

docker run command ends with error

/usr/bin/env: 'node': Text file busy
error Command failed with exit code 126.

Possible Solution

Rollback to 18.17.0 or 18.17.0-alpine

Steps to Reproduce

FROM node:lts-alpine as base
LABEL type="web"ENV NPM_CONFIG_LOGLEVEL=warn
ENV NPM_CONFIG_COLOR=false
ENV HOST 0.0.0.0
ENV APP_ROOT /home/node/app
WORKDIR ${APP_ROOT}
RUN chown -R node:node /home/node
COPY --chown=node:node . /home/node/app/
## DevelopmentFROM base as development
USER node
WORKDIR ${APP_ROOT}
RUN yarn --network-timeout 100000
EXPOSE 3000
CMD ["yarn", "dev"]
## Production and StagingFROM base as release
USER node
WORKDIR ${APP_ROOT}
COPY --chown=node:node --from=development /home/node/app/node_modules /home/node/app/node_modules
RUN yarn pre:build
FROM release as staging
USER node
RUN yarn build:stage
EXPOSE 3000
CMD [ "yarn", "start:stage" ]
FROM release as production
USER node
RUN yarn build:production
EXPOSE 3000
CMD [ "yarn", "start:production" ]

Additional Information

This error appeared today for images of version 18 of Node, after updating the images on Docker Hub 6 hours ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions