-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[Bug] Dockerfile build fails (OHIF 3.12) #5860
Copy link
Copy link
Open
Labels
Awaiting ReproductionCan we reproduce the reported bug?Can we reproduce the reported bug?
Description
Describe the Bug
When building the dockerfile in Viewers/platform/app/.recipes/Nginx-Orthanc-Keycloak/dockerfile,
we get:
Viewers/platform/app/.recipes/Nginx-Orthanc-Keycloak$ docker compose build
[+] Building 57.6s (14/21)
=> [internal] load local bake definitions 0.0s
=> => reading from stdin 589B 0.0s
=> [internal] load build definition from dockerfile 0.0s
=> => transferring dockerfile: 1.98kB 0.0s
=> [internal] load metadata for docker.io/library/nginx:alpine 3.5s
=> [internal] load metadata for docker.io/library/node:20.18.1-slim 3.5s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 765B 0.0s
=> [builder 1/8] FROM docker.io/library/node:20.18.1-slim@sha256:b2c8e0eb8a6aeeae 0.0s
=> [internal] load build context 0.5s
=> => transferring context: 44.07MB 0.5s
=> [stage-1 1/7] FROM docker.io/library/nginx:alpine@sha256:1d13701a5f9f3fb01aaa8 0.0s
=> => resolve docker.io/library/nginx:alpine@sha256:1d13701a5f9f3fb01aaa88cef2344 0.0s
=> CACHED [builder 2/8] RUN mkdir /usr/src/app 0.0s
=> CACHED [builder 3/8] WORKDIR /usr/src/app 0.0s
=> CACHED [builder 4/8] RUN apt-get update && apt-get install -y build-essential 0.0s
=> [builder 5/8] COPY ./ /usr/src/app/ 0.7s
=> [builder 6/8] RUN yarn config set workspaces-experimental true 0.5s
=> ERROR [builder 7/8] RUN yarn install --frozen-lockfile 52.1s
------
> [builder 7/8] RUN yarn install --frozen-lockfile:
0.384 yarn install v1.22.22
0.473 $ node preinstall.js
0.526 preinstall.js
0.527 No GITHUB_TOKEN found, skipping private repo customization
0.606 [1/5] Validating package.json...
0.642 [2/5] Resolving packages...
0.664 warning Resolution field "qs@6.14.1" is incompatible with requested version "qs@6.13.0"
0.676 warning Resolution field "core-js@3.45.1" is incompatible with requested version "core-js@^2.6.12"
0.681 warning Resolution field "tapable@2.2.2" is incompatible with requested version "tapable@^2.3.0"
0.684 warning Resolution field "tapable@2.2.2" is incompatible with requested version "tapable@^2.3.0"
0.689 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^2.20.0"
0.743 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^6.2.1"
0.746 warning Resolution field "qs@6.14.1" is incompatible with requested version "qs@6.14.0"
0.775 warning Resolution field "diff@5.2.2" is incompatible with requested version "diff@^4.0.1"
0.822 warning Resolution field "core-js@3.45.1" is incompatible with requested version "core-js@^2.5.7"
0.830 warning Resolution field "dcmjs@0.49.4" is incompatible with requested version "dcmjs@0.48.0"
0.831 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@9.2.0"
0.832 warning Resolution field "dcmjs@0.49.4" is incompatible with requested version "dcmjs@0.48.0"
0.837 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^10.0.1"
0.856 warning Resolution field "tar@7.5.9" is incompatible with requested version "tar@7.5.7"
0.857 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^2.20.0"
0.864 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^7.2.0"
0.865 warning Resolution field "dcmjs@0.49.4" is incompatible with requested version "dcmjs@^0.41.0"
0.884 warning Resolution field "glob-parent@6.0.2" is incompatible with requested version "glob-parent@^5.1.2"
0.886 warning Resolution field "glob-parent@6.0.2" is incompatible with requested version "glob-parent@~5.1.2"
0.889 warning Resolution field "qs@6.14.1" is incompatible with requested version "qs@6.13.0"
0.896 warning Resolution field "cross-spawn@7.0.6" is incompatible with requested version "cross-spawn@^6.0.0"
0.897 warning Resolution field "cross-spawn@7.0.6" is incompatible with requested version "cross-spawn@^4.0.2"
0.909 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^11.1.0"
0.909 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^11.1.0"
0.935 warning Resolution field "tar@7.5.9" is incompatible with requested version "tar@7.5.7"
0.955 warning Resolution field "path-to-regexp@0.1.12" is incompatible with requested version "path-to-regexp@3.3.0"
0.970 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^7.2.0"
0.992 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^10.0.1"
0.992 warning Resolution field "tar@7.5.9" is incompatible with requested version "tar@^6.1.13"
1.039 warning Resolution field "trim-newlines@5.0.0" is incompatible with requested version "trim-newlines@^3.0.0"
1.145 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^7.2.0"
1.150 warning Resolution field "commander@8.3.0" is incompatible with requested version "commander@^2.8.1"
1.240 warning Resolution field "qs@6.14.1" is incompatible with requested version "qs@6.13.0"
1.244 [3/5] Fetching packages...
38.38 warning ipfs-car@1.2.0: Invalid bin entry for "🚘" (in "ipfs-car").
46.37 error lerna@9.0.4: The engine "node" is incompatible with this module. Expected version "^20.19.0 || ^22.12.0 || >=24.0.0". Got "20.18.1"
46.39 error Found incompatible module.
46.39 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
dockerfile:22
--------------------
20 | # Install node dependencies
21 | RUN yarn config set workspaces-experimental true
22 | >>> RUN yarn install --frozen-lockfile
23 |
24 | # Copy the rest of the application code
--------------------
failed to solve: process "/bin/sh -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1Steps to Reproduce
- git clone https://github.com/OHIF/Viewers --branch release/3.12
- cd Viewers/platform/app/.recipes/Nginx-Orthanc-Keycloak
- docker compose build
The current behavior
The docker build fails, it worked previously with 3.11
The expected behavior
The docker build should not fail
System Information
Docker version 28.5.1, build e180ab8
OS: Ubuntu 24.04.3 LTS, kernel 6.8.0-87
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Awaiting ReproductionCan we reproduce the reported bug?Can we reproduce the reported bug?