cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.29k stars 485 forks source link

Fail to build the docker image #195

Open pinjiang opened 7 months ago

pinjiang commented 7 months ago

[+] 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 npm@10.2.4 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: react-intl@6.5.5 70.31 npm ERR! Found: typescript@4.9.5 70.31 npm ERR! node_modules/typescript 70.31 npm ERR! peerOptional typescript@"5" from @formatjs/intl@2.9.9 70.31 npm ERR! node_modules/react-intl/node_modules/@formatjs/intl 70.31 npm ERR! @formatjs/intl@"2.9.9" from react-intl@6.5.5 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 react-intl@6.5.5 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: typescript@5.3.2 70.31 npm ERR! node_modules/typescript 70.31 npm ERR! peerOptional typescript@"5" from react-intl@6.5.5 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`