flyctl
flyctl copied to clipboard
flyctl deploy fails on bun 1.0.0 - missing bun:1.0.0-slim on docker hub
Describe the bug
Running flyctl deploy with bun 1.0.0 fails because it tries to use docker.io/oven/bun:1.0.0-slim which is not published on docker hub.
Upgrading bun afterwards will still continue to error unless the Dockerfile is updated.
> bun --version
1.0.0
> flyctl version
flyctl v0.2.11 darwin/arm64 Commit: 98866160da36eaa8d3ac16a0a6c6b62dcc1743db BuildDate: 2024-02-27T19:37:07Z
** Command output: **
=> ERROR [internal] load metadata for docker.io/oven/bun:1.0.0-slim 2.7s
------
> [internal] load metadata for docker.io/oven/bun:1.0.0-slim:
------
Error: failed to fetch an image or build from source: error building: failed to solve: failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = oven/bun:1.0.0-slim: docker.io/oven/bun:1.0.0-slim: not found
Replacing this line from FROM oven/bun:1.0.0-slim as base to FROM oven/bun:1.0.7-slim as base seems to work for me if anyone is stuck deploying on this step