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

Suggestion: set requirement target for a target (build before) #666

Closed
back-2-95 opened this issue Jul 7, 2021 · 1 comment
Closed

Suggestion: set requirement target for a target (build before) #666

back-2-95 opened this issue Jul 7, 2021 · 1 comment

Comments

@back-2-95
Copy link

Just basically saying that please build some target before building this target.

Target is using build image from another target in FROM statement.

Example (I used the word require here):

target "base-7.3" {
  inherits = ["common", "base"]
  args = {
    PHP_VERSION = "7.3"
    PHP_SHORT_VERSION = "73"
  }
  tags = ["${REPO_BASE}:7.3", "${REPO_BASE}:${PHP73_MINOR}"]
}

target "web-7.3" {
  require = ["base-7.3"]
  inherits = ["common", "base-7.3", "web"]
  tags = ["${REPO_WEB}:7.3", "${REPO_WEB}:${PHP73_MINOR}"]
}
@tonistiigi
Copy link
Member

duplicate of #447

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

2 participants