Assalamu Alekim. I trying build docker images and get some errors
umit@MacBook-Air-dilhan rails-base-app % sudo docker compose build
[+] Building 5.7s (13/46) docker:default
=> [cable internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.46kB 0.0s
=> [worker internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.46kB 0.0s
=> [worker internal] load metadata for docker.io/library/ruby:3.2.2-alpi 1.8s
=> [web internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.46kB 0.0s
=> [cable auth] library/ruby:pull token for registry-1.docker.io 0.0s
=> [web internal] load .dockerignore 0.0s
=> => transferring context: 799B 0.0s
=> [cable internal] load .dockerignore 0.0s
=> => transferring context: 799B 0.0s
=> [worker internal] load .dockerignore 0.1s
=> => transferring context: 799B 0.0s
=> CACHED [worker base 1/3] FROM docker.io/library/ruby:3.2.2-alpine@sha 0.0s
=> [web internal] load build context 0.2s
=> => transferring context: 10.18kB 0.1s
=> [cable internal] load build context 0.2s
=> => transferring context: 10.18kB 0.2s
=> [worker internal] load build context 0.2s
=> => transferring context: 10.18kB 0.2s
=> ERROR [cable base 2/3] RUN apk add --update git postgresql-dev 3.7s
------
> [cable base 2/3] RUN apk add --update git postgresql-dev tzdata nodejs=16.17.1-r0 yarn=1.22.19-r0:
0.630 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
1.840 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
3.378 ERROR: unable to select packages:
3.391 nodejs-20.15.1-r0:
3.391 breaks: world[nodejs=16.17.1-r0]
3.391 satisfies: yarn-1.22.19-r0[nodejs]
------
failed to solve: process "/bin/sh -c apk add --update git postgresql-dev tzdata nodejs=$NODE_VERSION yarn=$YARN_VERSION" did not complete successfully: exit code: 2
Then I remove node & yarn version in Dockerfile and command docker compose build work fine...
Assalamu Alekim. I trying build docker images and get some errors
Then I remove node & yarn version in Dockerfile and command
docker compose buildwork fine...