Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--ignorefile option is ignored when using a custom build context with fly deploy #3870

Open
jgoux opened this issue Aug 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jgoux
Copy link

jgoux commented Aug 19, 2024

When using a custom build context with fly deploy, the --ignorefile flag isn't taken into account when calling:

fly deploy ../.. --config apps/proxy/fly.toml --ignorefile apps/proxy/.dockerignore --dockerfile apps/proxy/Dockerfile

I also tried setting these options in my fly.toml file with this command:

fly deploy ../.. --config apps/proxy/fly.toml
app = 'my-app'

[build]
dockerfile = "Dockerfile"
ignorefile = ".dockerignore"

The Dockerfile is found by the .dockerignore is once again ignored.

The only way to make it works is to copy my .dockerignore file to the root folder:

cp .dockerignore ../.. && fly deploy ../.. --config apps/proxy/fly.toml && rm ../../.dockerignore

Fly version: fly v0.2.114 darwin/arm64 Commit: de9e822f435d145ba4def9ef63cb94a35383b461 BuildDate: 2024-08-16T13:33:06Z

@jgoux jgoux added the bug Something isn't working label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant