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

no such file or directory in Docker container #390

Closed
dbachinin opened this issue Feb 21, 2024 · 1 comment
Closed

no such file or directory in Docker container #390

dbachinin opened this issue Feb 21, 2024 · 1 comment

Comments

@dbachinin
Copy link

dbachinin commented Feb 21, 2024

use Docker Compose version v2.2.3
Docker version 25.0.3, build 4debf41

Dockerfile

FROM ruby:2.7.6-slim-buster

...

RUN curl -sL https://deb.nodesource.com/setup_$NODE_MAJOR.x | bash - \
  && apt-get update -yqq \
  && apt-get -yq dist-upgrade \
  && apt-get install -yq nodejs \
  && rm -rf /var/lib/apt/lists/*

RUN apt update && apt install libengine-gost-openssl1.1

RUN npm install -g [email protected]

RUN corepack enable && corepack prepare yarn@stable --activate

...

RUN gem install bundler:2.3.24

ENV BUNDLE_JOBS=3

RUN bundle install
RUN yarn install

when call docker compose buid
this command returns error:

 => ERROR [sidekiq 26/32] RUN yarn install                                                                                                                                                           0.6s
------
 > [sidekiq 26/32] RUN yarn install:
0.411 Internal Error: ENOENT: no such file or directory, open '/home/docker/.cache/node/corepack/lastKnownGood.json'
0.411 Error: ENOENT: no such file or directory, open '/home/docker/.cache/node/corepack/lastKnownGood.json'
------
failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
@merceyz
Copy link
Member

merceyz commented Feb 21, 2024

Duplicate of #379

@merceyz merceyz marked this as a duplicate of #379 Feb 21, 2024
@merceyz merceyz closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
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