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

The Dockerfile should be defined as an InputFile #413

Open
dsmiley opened this issue Nov 15, 2020 · 0 comments
Open

The Dockerfile should be defined as an InputFile #413

dsmiley opened this issue Nov 15, 2020 · 0 comments

Comments

@dsmiley
Copy link

dsmiley commented Nov 15, 2020

The task "docker" supports a custom "Dockerfile" at the project root. However, it's apparent that the code for this plugin does not declare to Gradle that the Dockerfile is one of the task's "inputs". Because of this problem, when I change my Dockerfile, running the docker task directly or indirectly are short-circuited by Gradle's incremental build feature, since it thinks there have been no changes that are pertinent to this task.

https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:up_to_date_checks

I've worked around this by specifying

tasks.docker {
  inputs.file('Dockerfile')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant