Skip to content

Commit 981dad8

Browse files
committed
fix: correct Dockerfile path in Fly.io deployment
The deployment was failing because flyctl was looking for the Dockerfile at demo/demo/Dockerfile instead of demo/Dockerfile. When --config points to demo/fly.toml, flyctl changes context to the demo/ directory, so the dockerfile path should be relative to that location. Changes: - Updated fly.toml to use relative path "Dockerfile" instead of "demo/Dockerfile" - Removed redundant --dockerfile flag from workflow (path already in fly.toml)
1 parent 7471f79 commit 981dad8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/fly-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: superfly/flyctl-actions/setup-flyctl@master
1616
- name: Deploy demo app to Fly.io
17-
run: flyctl deploy --remote-only --config demo/fly.toml --dockerfile demo/Dockerfile --build-arg BUILD_CONTEXT=.
17+
run: flyctl deploy --remote-only --config demo/fly.toml --build-arg BUILD_CONTEXT=.
1818
env:
1919
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

demo/fly.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ primary_region = 'arn'
88
kill_signal = 'SIGTERM'
99

1010
[build]
11-
dockerfile = "demo/Dockerfile"
11+
dockerfile = "Dockerfile"
1212

1313
[env]
1414
PHX_HOST = 'prima-lingering-feather-539.fly.dev'

0 commit comments

Comments
 (0)