Skip to content

Commit

Permalink
Merge pull request #1088 from superfly/app-configuration_build-sectio…
Browse files Browse the repository at this point in the history
…n_dockerfile_callout

In Fly launch config page > build section > dockerfile, put the gotchas with this setup in a callout.
  • Loading branch information
Johannes-Werbrouck authored Oct 10, 2023
2 parents c3fba98 + 0d76f0c commit 7397a23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion reference/configuration.html.markerb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ The image builder is used when you want to immediately deploy an existing public

`dockerfile` accepts a relative path to a Dockerfile, or a URL. By default, `flyctl` looks for `Dockerfile` in the application root.

**Gotchas:** 1) This option will not change the Docker context path, which is set to the project root directory by default. If you want the `Dockerfile` to use its containing directory as the context root, use `fly deploy <directory>`. 2) When specifying a local Dockerfile, make sure it's not excluded from the Docker build context in your `.dockerignore`.
<div class="note icon">
**Gotchas:**
- This option will not change the Docker context path, which is set to the project root directory by default. If you want the `Dockerfile` to use its containing directory as the context root, use `fly deploy <directory>`.
- When specifying a local Dockerfile, make sure it's not excluded from the Docker build context in your `.dockerignore`.
</div>

### Specify a Docker ignore file

Expand Down

0 comments on commit 7397a23

Please sign in to comment.