Связанная проблема с git:
https://github.com/orgs/langfuse/discussions/7502
Справочная информация:
Я пытаюсь собрать образ для x86_64 на своем ноутбуке (macOS). И он всегда застревает в следующей строке в файле Dockerfile.
Код: Выделить всё
RUN NODE_OPTIONS='--max-old-space-size-percentage=75' turbo run build --filter=web...
Журнал последнего шага выглядит так, когда я отменил процесс. Судя по тому, что я спросил у AI, процесс сборки не должен занимать более 1 часа (3600 с).
Код: Выделить всё
=> CACHED [pruner 3/3] RUN turbo prune --scope=web --docker 0.0s
=> CACHED [builder 2/8] COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml 0.0s
=> CACHED [builder 3/8] COPY --from=pruner /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml 0.0s
=> CACHED [builder 4/8] COPY --from=pruner /app/out/json/ . 0.0s
=> CACHED [builder 5/8] RUN pnpm install --frozen-lockfile 0.0s
=> CACHED [builder 6/8] COPY --from=pruner /app/out/full/ . 0.0s
=> CACHED [builder 7/8] RUN rm -f ./web/src/middleware.ts 0.0s
=> CANCELED [builder 8/8] RUN NODE_OPTIONS='--max-old-space-size-percentage=75' turbo run build --filter=web... 52768.3s
18 warnings found (use docker --debug to expand):
- JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 156)
- SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "SENTRY_AUTH_TOKEN") (line 62)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 82)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 102)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 106)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 149)
- RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM:-linux/amd64} in FROM is redundant as this is the default behavior (line 15)
- RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM:-linux/amd64} in FROM is redundant as this is the default behavior (line 22)
- RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM:-linux/amd64} in FROM is redundant as this is the default behavior (line 90)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 33)
- SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "SENTRY_AUTH_TOKEN") (line 61)
- RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM:-linux/amd64} in FROM is redundant as this is the default behavior (line 2)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 85)
- RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM:-linux/amd64} in FROM is redundant as this is the default behavior (line 8)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 34)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 83)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 104)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 108)
ERROR: failed to solve: Canceled: context canceled
Код: Выделить всё
=> [builder 6/8] COPY --from=pruner /app/out/full/ . 5.3s
=> [builder 7/8] RUN rm -f ./web/src/middleware.ts 0.2s
=> [builder 8/8] RUN NODE_OPTIONS='--max-old-space-size-percentage=75' turbo run build --filter=web... 1500.0s
=> => # to `false`.
=> => # web:build: [@sentry/nextjs - Client] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetr
=> => # y` to `false`.
=> => # web:build: Browserslist: caniuse-lite is outdated. Please run:
=> => # web:build: npx update-browserslist-db@latest
=> => # web:build: Why you should do it regularly: https://github.com/browserslist/update-db#readme
Подробнее здесь: https://stackoverflow.com/questions/798 ... t-stucks-i
Мобильная версия