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

Default ´dockerfile´ value is wrong #335

Open
JoelLinn opened this issue Oct 12, 2021 · 0 comments
Open

Default ´dockerfile´ value is wrong #335

JoelLinn opened this issue Oct 12, 2021 · 0 comments

Comments

@JoelLinn
Copy link

The default value for the -f flag of docker build is PATH/Dockerfile.
However, this plugin uses just Dockerfile as default:

cli.StringFlag{
Name: "dockerfile",
Usage: "build dockerfile",
Value: "Dockerfile",
EnvVar: "PLUGIN_DOCKERFILE",

For this reason one needs to explicitly set the dockerfile when using a non default context (PATH), for example:

settings:
  context: 5.6/buster/cli
  dockerfile: 5.6/buster/cli/Dockerfile

Otherwise, this error will be thrown:

unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /drone/src/Dockerfile: no such file or directory
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