[Bug]: Dockerfile Fails To Build "develop" Revision 69b8dba0
Created by: arazil
What happened?
Docker is failing to build "develop" git revision 69b8dba0 via the git supplied Dockerfile. We manually emptied the Docker build cache ("docker builder prune") before running the Docker Compose rebuild command. This bug was first observed around commit cc872cca and continues to be present in the latest (69b8dba0) repository.
What did you expect to happen?
Dockerfile builds the Calckey image without issues. Image is functional upon launch.
Version
"develop" git revision 69b8dba0
Instance
social.arazil.net
What type of issue is this?
Server-side
What browser are you using? (Client-side issues only)
N/A
What operating system are you using? (Client-side issues only)
N/A
How do you deploy Calckey on your server? (Server-side issues only)
Docker Compose
What operating system are you using? (Server-side issues only)
Debian
Relevant log output
[+] Building 654.7s (31/42)
=> [web internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.71kB 0.0s
=> [web internal] load .dockerignore 0.0s
=> => transferring context: 693B 0.0s
=> [web internal] load metadata for docker.io/library/alpine:3.18 1.3s
=> [web internal] load build context 0.3s
=> => transferring context: 37.62MB 0.3s
=> [web stage-1 1/14] FROM docker.io/library/alpine:3.18@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1 0.0s
=> CACHED [web stage-1 2/14] WORKDIR /calckey 0.0s
=> CACHED [web stage-1 3/14] RUN apk add --no-cache --no-progress tini ffmpeg vips-dev zip unzip nodejs-current 0.0s
=> [web stage-1 4/14] COPY . ./ 0.3s
=> [web build 3/26] RUN apk add --no-cache --no-progress git alpine-sdk python3 nodejs-current npm rust cargo vips 8.0s
=> [web build 4/26] COPY packages/backend/native-utils/Cargo.toml packages/backend/native-utils/Cargo.toml 0.0s
=> [web build 5/26] COPY packages/backend/native-utils/Cargo.lock packages/backend/native-utils/Cargo.lock 0.0s
=> [web build 6/26] COPY packages/backend/native-utils/src/lib.rs packages/backend/native-utils/src/ 0.0s
=> [web build 7/26] COPY packages/backend/native-utils/migration/Cargo.toml packages/backend/native-utils/migration/Cargo.toml 0.0s
=> [web build 8/26] COPY packages/backend/native-utils/migration/src/lib.rs packages/backend/native-utils/migration/src/ 0.0s
=> [web build 9/26] RUN cargo fetch --locked --manifest-path /calckey/packages/backend/native-utils/Cargo.toml 5.3s
=> [web build 10/26] COPY package.json pnpm*.yaml ./ 0.0s
=> [web build 11/26] COPY packages/backend/package.json packages/backend/package.json 0.0s
=> [web build 12/26] COPY packages/client/package.json packages/client/package.json 0.0s
=> [web build 13/26] COPY packages/sw/package.json packages/sw/package.json 0.0s
=> [web build 14/26] COPY packages/calckey-js/package.json packages/calckey-js/package.json 0.0s
=> [web build 15/26] COPY packages/backend/native-utils/package.json packages/backend/native-utils/package.json 0.0s
=> [web build 16/26] COPY packages/backend/native-utils/npm/linux-x64-musl/package.json packages/backend/native-utils/npm/linux-x64-musl/package.json 0.0s
=> [web build 17/26] COPY packages/backend/native-utils/npm/linux-arm64-musl/package.json packages/backend/native-utils/npm/linux-arm64-musl/package.json 0.0s
=> [web build 18/26] RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile 168.9s
=> [web build 19/26] COPY packages/backend/native-utils/.cargo packages/backend/native-utils/.cargo 0.0s
=> [web build 20/26] COPY packages/backend/native-utils/build.rs packages/backend/native-utils/ 0.0s
=> [web build 21/26] COPY packages/backend/native-utils/src packages/backend/native-utils/src/ 0.1s
=> [web build 22/26] COPY packages/backend/native-utils/migration/src packages/backend/native-utils/migration/src/ 0.0s
=> [web build 23/26] RUN pnpm run --filter native-utils build 464.2s
=> [web build 24/26] COPY . ./ 0.7s
=> ERROR [web build 25/26] RUN env NODE_ENV=production sh -c "pnpm run --filter '!native-utils' build && pnpm run gulp" 5.4s
------
> [web build 25/26] RUN env NODE_ENV=production sh -c "pnpm run --filter '!native-utils' build && pnpm run gulp":
#0 0.833 Scope: 5 of 7 workspace projects
#0 0.837 packages/calckey-js build$ pnpm swc src -d built -D
#0 0.837 packages/megalodon build$ tsc -p ./
#0 1.634 packages/calckey-js build: Successfully compiled: 8 files with swc (65.76ms)
#0 1.654 packages/calckey-js build: Done
#0 5.335 packages/megalodon build: src/megalodon.ts(5,43): error TS2307: Cannot find module 'axios' or its corresponding type declarations.
#0 5.336 packages/megalodon build: src/misskey.ts(1,22): error TS2307: Cannot find module 'form-data' or its corresponding type declarations.
#0 5.336 packages/megalodon build: src/misskey.ts(2,23): error TS2307: Cannot find module 'async-lock' or its corresponding type declarations.
#0 5.336 packages/megalodon build: src/misskey/api_client.ts(1,58): error TS2307: Cannot find module 'axios' or its corresponding type declarations.
#0 5.337 packages/megalodon build: src/misskey/api_client.ts(2,19): error TS2307: Cannot find module 'dayjs' or its corresponding type declarations.
#0 5.337 packages/megalodon build: src/misskey/api_client.ts(3,22): error TS2307: Cannot find module 'form-data' or its corresponding type declarations.
#0 5.337 packages/megalodon build: src/misskey/web_socket.ts(1,16): error TS2307: Cannot find module 'ws' or its corresponding type declarations.
#0 5.338 packages/megalodon build: src/misskey/web_socket.ts(2,30): error TS2307: Cannot find module 'dayjs' or its corresponding type declarations.
#0 5.338 packages/megalodon build: src/misskey/web_socket.ts(3,28): error TS2307: Cannot find module 'uuid' or its corresponding type declarations.
#0 5.339 packages/megalodon build: src/proxy_config.ts(1,57): error TS2307: Cannot find module 'https-proxy-agent' or its corresponding type declarations.
#0 5.339 packages/megalodon build: src/proxy_config.ts(2,57): error TS2307: Cannot find module 'socks-proxy-agent' or its corresponding type declarations.
#0 5.339 packages/megalodon build: test/integration/megalodon.spec.ts(3,1): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.340 packages/megalodon build: test/integration/megalodon.spec.ts(4,3): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.340 packages/megalodon build: test/integration/megalodon.spec.ts(6,5): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.340 packages/megalodon build: test/integration/megalodon.spec.ts(8,7): error TS2304: Cannot find name 'expect'.
#0 5.340 packages/megalodon build: test/integration/megalodon.spec.ts(12,3): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.340 packages/megalodon build: test/integration/megalodon.spec.ts(14,5): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.341 packages/megalodon build: test/integration/megalodon.spec.ts(16,7): error TS2304: Cannot find name 'expect'.
#0 5.341 packages/megalodon build: test/integration/megalodon.spec.ts(20,3): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.341 packages/megalodon build: test/integration/megalodon.spec.ts(22,5): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.342 packages/megalodon build: test/integration/megalodon.spec.ts(24,7): error TS2304: Cannot find name 'expect'.
#0 5.342 packages/megalodon build: test/integration/misskey.spec.ts(5,38): error TS2307: Cannot find module 'axios' or its corresponding type declarations.
#0 5.342 packages/megalodon build: test/integration/misskey.spec.ts(7,1): error TS2304: Cannot find name 'jest'.
#0 5.342 packages/megalodon build: test/integration/misskey.spec.ts(136,1): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.342 packages/megalodon build: test/integration/misskey.spec.ts(191,5): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.342 packages/megalodon build: test/integration/misskey.spec.ts(201,7): error TS2304: Cannot find name 'expect'.
#0 5.343 packages/megalodon build: test/unit/misskey/api_client.spec.ts(19,1): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.343 packages/megalodon build: test/unit/misskey/api_client.spec.ts(20,3): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.343 packages/megalodon build: test/unit/misskey/api_client.spec.ts(21,5): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.343 packages/megalodon build: test/unit/misskey/api_client.spec.ts(22,7): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.343 packages/megalodon build: test/unit/misskey/api_client.spec.ts(54,11): error TS2304: Cannot find name 'expect'.
#0 5.343 packages/megalodon build: test/unit/misskey/api_client.spec.ts(58,5): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.344 packages/megalodon build: test/unit/misskey/api_client.spec.ts(59,7): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.344 packages/megalodon build: test/unit/misskey/api_client.spec.ts(99,11): error TS2304: Cannot find name 'expect'.
#0 5.344 packages/megalodon build: test/unit/misskey/api_client.spec.ts(104,3): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.344 packages/megalodon build: test/unit/misskey/api_client.spec.ts(105,5): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.344 packages/megalodon build: test/unit/misskey/api_client.spec.ts(166,7): error TS2304: Cannot find name 'expect'.
#0 5.344 packages/megalodon build: test/unit/misskey/api_client.spec.ts(181,3): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.345 packages/megalodon build: test/unit/misskey/api_client.spec.ts(182,5): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.345 packages/megalodon build: test/unit/misskey/api_client.spec.ts(183,7): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.345 packages/megalodon build: test/unit/misskey/api_client.spec.ts(204,9): error TS2304: Cannot find name 'expect'.
#0 5.345 packages/megalodon build: test/unit/misskey/api_client.spec.ts(205,9): error TS2304: Cannot find name 'expect'.
#0 5.345 packages/megalodon build: test/unit/misskey/api_client.spec.ts(207,7): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.345 packages/megalodon build: test/unit/misskey/api_client.spec.ts(228,9): error TS2304: Cannot find name 'expect'.
#0 5.346 packages/megalodon build: test/unit/misskey/api_client.spec.ts(229,9): error TS2304: Cannot find name 'expect'.
#0 5.346 packages/megalodon build: test/unit/parser.spec.ts(77,1): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.346 packages/megalodon build: test/unit/parser.spec.ts(80,3): error TS2304: Cannot find name 'beforeEach'.
#0 5.346 packages/megalodon build: test/unit/parser.spec.ts(84,3): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.346 packages/megalodon build: test/unit/parser.spec.ts(85,5): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.346 packages/megalodon build: test/unit/parser.spec.ts(87,7): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.347 packages/megalodon build: test/unit/parser.spec.ts(88,21): error TS2304: Cannot find name 'jest'.
#0 5.347 packages/megalodon build: test/unit/parser.spec.ts(91,9): error TS2304: Cannot find name 'expect'.
#0 5.347 packages/megalodon build: test/unit/parser.spec.ts(95,5): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.348 packages/megalodon build: test/unit/parser.spec.ts(96,7): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.348 packages/megalodon build: test/unit/parser.spec.ts(98,9): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.348 packages/megalodon build: test/unit/parser.spec.ts(99,23): error TS2304: Cannot find name 'jest'.
#0 5.348 packages/megalodon build: test/unit/parser.spec.ts(102,11): error TS2304: Cannot find name 'expect'.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(106,7): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(108,9): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(109,25): error TS2304: Cannot find name 'jest'.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(110,27): error TS2304: Cannot find name 'jest'.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(114,11): error TS2304: Cannot find name 'expect'.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(115,11): error TS2304: Cannot find name 'expect'.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(120,5): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(121,7): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(123,9): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.349 packages/megalodon build: test/unit/parser.spec.ts(124,23): error TS2304: Cannot find name 'jest'.
#0 5.350 packages/megalodon build: test/unit/parser.spec.ts(127,11): error TS2304: Cannot find name 'expect'.
#0 5.350 packages/megalodon build: test/unit/parser.spec.ts(131,7): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.350 packages/megalodon build: test/unit/parser.spec.ts(133,9): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.350 packages/megalodon build: test/unit/parser.spec.ts(134,23): error TS2304: Cannot find name 'jest'.
#0 5.350 packages/megalodon build: test/unit/parser.spec.ts(137,11): error TS2304: Cannot find name 'expect'.
#0 5.350 packages/megalodon build: test/unit/parser.spec.ts(141,7): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.351 packages/megalodon build: test/unit/parser.spec.ts(143,9): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
#0 5.351 packages/megalodon build: test/unit/parser.spec.ts(144,23): error TS2304: Cannot find name 'jest'.
#0 5.351 packages/megalodon build: test/unit/parser.spec.ts(147,11): error TS2304: Cannot find name 'expect'.
#0 5.375 packages/megalodon build: Failed
#0 5.377 undefined
#0 5.378 /calckey/packages/megalodon:
#0 5.378 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL megalodon@ build: `tsc -p ./`
#0 5.378 Exit status 2
#0 5.381 WARN Local package.json exists, but node_modules missing, did you mean to install?
------
failed to solve: process "/bin/sh -c env NODE_ENV=production sh -c \"pnpm run --filter '!native-utils' build && pnpm run gulp\"" did not complete successfully: exit code: 1
Contribution Guidelines
-
I agree to follow this project's Contribution Guidelines -
I have searched the issue tracker for similar issues, and this is not a duplicate.