bun
bun copied to clipboard
Failed to deploy with latest versions of flyctl and bun
I just signed up to fly.io to try out a bun deploy
I think I followed the steps, but maybe made a mistake somewhere?
Here is the deploy command output:
bun % fly deploy
==> Verifying app config
Validating /Users/aurelien/Dev/bun/fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
WARN Failed to start remote builder heartbeat: Timeout on EnsureMachineRemoteBuilder.machine
Remote builder fly-builder-falling-meadow-8409 ready
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 6.5s (12/15)
=> [internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 817B 0.2s
=> [internal] load .dockerignore 0.2s
=> => transferring context: 2.26kB 0.2s
=> resolve image config for docker.io/docker/dockerfile:1 0.6s
=> docker-image://docker.io/docker/dockerfile:1@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14 0.3s
=> => resolve docker.io/docker/dockerfile:1@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14 0.0s
=> => sha256:dbdd11720762ad504260c66161c964e59eba06b95a7aa64a68634b598a830a91 2.90kB / 2.90kB 0.0s
=> => sha256:a47ff7046597eea0123ea02817165350e3680f75000dc5d69c9a310258e1bedd 11.55MB / 11.55MB 0.1s
=> => sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14 8.40kB / 8.40kB 0.0s
=> => sha256:966d40f9ba8366e74c2fa353fc0bc7bbc167d2a0f3ad2420db8b9e633049462d 482B / 482B 0.0s
=> => extracting sha256:a47ff7046597eea0123ea02817165350e3680f75000dc5d69c9a310258e1bedd 0.2s
=> [internal] load .dockerignore 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> [internal] load metadata for docker.io/oven/bun:0.7.1 1.0s
=> [internal] load build context 4.2s
=> => transferring context: 29.88MB 4.2s
=> [base 1/2] FROM docker.io/oven/bun:0.7.1@sha256:651b5e1202fabf555dbe7a9f7678f363e94d182bb46afb76c62e6dcdfc9a9dde 3.1s
=> => resolve docker.io/oven/bun:0.7.1@sha256:651b5e1202fabf555dbe7a9f7678f363e94d182bb46afb76c62e6dcdfc9a9dde 0.0s
=> => sha256:89ec80f8dacecfb604fdd72af8be95bc3f863517748458077651b728c4187979 1.49kB / 1.49kB 0.0s
=> => sha256:1d5252f66ea9b661aceca1027b3d7ca259a50608261a25b51148119ecf086932 31.42MB / 31.42MB 0.3s
=> => sha256:07c8dc1f688b61d6ac5760d5d3c28c9ea09f6cc22e0adc2ab59a04d350dcfd2b 38.01MB / 38.01MB 0.9s
=> => sha256:336c652a112dac60981d47820514fe89721380d0c1b31f81cf5ec0ad600d5d9d 38.01MB / 38.01MB 0.5s
=> => sha256:4c88a1a24bb0654b2b7efcfb8c62484180e25f375111956fc1773f9878381f19 141B / 141B 0.6s
=> => sha256:651b5e1202fabf555dbe7a9f7678f363e94d182bb46afb76c62e6dcdfc9a9dde 685B / 685B 0.0s
=> => sha256:23e15dfa80fbb649cda8447de4af01021c0ff60ac515ca452d386e3b937970fc 3.02kB / 3.02kB 0.0s
=> => sha256:1b14567342b84ccd08ddba523bd3699c879cc070fd040610e4c7ca6624237101 4.07kB / 4.07kB 0.0s
=> => sha256:68ccd6d6c70fb8204be37ae1537a53e0e5301c7a4c30cd7d855e5823625621e5 296B / 296B 0.0s
=> => extracting sha256:1d5252f66ea9b661aceca1027b3d7ca259a50608261a25b51148119ecf086932 1.1s
=> => extracting sha256:1b14567342b84ccd08ddba523bd3699c879cc070fd040610e4c7ca6624237101 0.0s
=> => extracting sha256:68ccd6d6c70fb8204be37ae1537a53e0e5301c7a4c30cd7d855e5823625621e5 0.0s
=> => extracting sha256:07c8dc1f688b61d6ac5760d5d3c28c9ea09f6cc22e0adc2ab59a04d350dcfd2b 0.6s
=> => extracting sha256:336c652a112dac60981d47820514fe89721380d0c1b31f81cf5ec0ad600d5d9d 0.6s
=> => extracting sha256:4c88a1a24bb0654b2b7efcfb8c62484180e25f375111956fc1773f9878381f19 0.0s
=> [base 2/2] WORKDIR /app 0.1s
=> CANCELED [build 1/4] RUN apt-get update -qq && apt-get install -y build-essential pkg-config python 1.1s
=> ERROR [build 2/4] COPY --link bun.lockb package.json ./ 0.0s
------
> [build 2/4] COPY --link bun.lockb package.json ./:
------
Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: "/bun.lockb" not found: not found
Here are some more info about the env:
bun % ls
Dockerfile README.md bun.lockb fly.toml http.ts node_modules package.json tsconfig.json
bun % bun --version
0.7.1
bun % fly version
fly v0.1.66 darwin/arm64 Commit: 01075166a03c73f81747a0bf55dc070e7e4a6c1f-dirty BuildDate: 2023-07-28T18:05:53Z
FYI: if you or someone else runs into this again, remove the line with bun.lockb
from the .dockerignore
file created by fly launch
.