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

Fail to build the docker image #195

Open
pinjiang opened this issue Nov 27, 2023 · 0 comments
Open

Fail to build the docker image #195

pinjiang opened this issue Nov 27, 2023 · 0 comments

Comments

@pinjiang
Copy link

pinjiang commented Nov 27, 2023

[+] Building 72.3s (15/21) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.07kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 55B 0.0s
=> [internal] load metadata for docker.io/library/node:19-bullseye-slim 1.8s
=> [build 1/11] FROM docker.io/library/node:19-bullseye-slim@sha256:f58f1fcf5c9ff9e3752993edb4ed6dbd35697124c85a43f3b97aa054500b0534 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 7.63kB 0.0s
=> CACHED [build 2/11] RUN apt-get update && apt-get install -y git 0.0s
=> CACHED [build 3/11] WORKDIR /app 0.0s
=> CACHED [build 4/11] COPY ./app/package.json ./ 0.0s
=> CACHED [build 5/11] COPY ./app/tsconfig.json ./ 0.0s
=> CACHED [server 2/7] WORKDIR /app 0.0s
=> CACHED [server 3/7] COPY ./server/package.json ./server/tsconfig.json ./ 0.0s
=> CACHED [server 4/7] RUN npm install 0.0s
=> CACHED [server 5/7] COPY ./server/src ./src 0.0s
=> CACHED [server 6/7] RUN CI=true sh -c "cd /app && npm run start && rm -rf data" 0.0s
=> ERROR [build 6/11] RUN npm install 70.4s


[build 6/11] RUN npm install:
70.30 npm WARN ERESOLVE overriding peer dependency
70.31 npm notice
70.31 npm notice New major version of npm available! 9.6.3 -> 10.2.4
70.31 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.4
70.31 npm notice Run npm install -g [email protected] to update!
70.31 npm notice
70.31 npm ERR! code ERESOLVE
70.31 npm ERR! ERESOLVE could not resolve
70.31 npm ERR!
70.31 npm ERR! While resolving: [email protected]
70.31 npm ERR! Found: [email protected]
70.31 npm ERR! node_modules/typescript
70.31 npm ERR! peerOptional typescript@"5" from @formatjs/[email protected]
70.31 npm ERR! node_modules/react-intl/node_modules/@formatjs/intl
70.31 npm ERR! @formatjs/intl@"2.9.9" from [email protected]
70.31 npm ERR! node_modules/react-intl
70.31 npm ERR! react-intl@"^6.2.10" from the root project
70.31 npm ERR!
70.31 npm ERR! Could not resolve dependency:
70.31 npm ERR! peerOptional typescript@"5" from [email protected]
70.31 npm ERR! node_modules/react-intl
70.31 npm ERR! react-intl@"^6.2.10" from the root project
70.31 npm ERR!
70.31 npm ERR! Conflicting peer dependency: [email protected]
70.31 npm ERR! node_modules/typescript
70.31 npm ERR! peerOptional typescript@"5" from [email protected]
70.31 npm ERR! node_modules/react-intl
70.31 npm ERR! react-intl@"^6.2.10" from the root project
70.31 npm ERR!
70.31 npm ERR! Fix the upstream dependency conflict, or retry
70.31 npm ERR! this command with --force or --legacy-peer-deps
70.31 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
70.31 npm ERR!
70.31 npm ERR!
70.31 npm ERR! For a full report see:
70.31 npm ERR! /root/.npm/_logs/2023-11-27T12_12_37_390Z-eresolve-report.txt
70.31
70.31 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-11-27T12_12_37_390Z-debug-0.log


Dockerfile:15


13 |
14 | # Install Node.js dependencies
15 | >>> RUN npm install
16 |
17 | COPY ./app/vite.config.js ./


ERROR: failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1`

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

1 participant