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 corepack@0.25.1
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
use Docker Compose version v2.2.3 Docker version 25.0.3, build 4debf41
Dockerfile
when call
docker compose buid
this command returns error: