Skip to content

Commit

Permalink
In Fly launch config page > build section > dockerfile, put the gotch…
Browse files Browse the repository at this point in the history
…as with this setup in a callout.
  • Loading branch information
Johannes-Werbrouck committed Oct 6, 2023
1 parent 774b062 commit 1709b5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reference/configuration.html.markerb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ 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="callout">
- 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 1709b5f

Please sign in to comment.