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

Unable to use relative path for dockerfile #5305

Open
1 task done
jarojasm95 opened this issue Feb 13, 2023 · 1 comment
Open
1 task done

Unable to use relative path for dockerfile #5305

jarojasm95 opened this issue Feb 13, 2023 · 1 comment

Comments

@jarojasm95
Copy link
Contributor

jarojasm95 commented Feb 13, 2023

Before proceeding

  • I didn't find a similar issue

Version

1.2.47

How to reproduce

Using the following image configuration fails

image: my-app
context: app
dockerfile: ../build/app.Dockerfile

Result

Error: unable to load werf config: 'dockerfile: PATH' required and should be relative to context!

Expected result

Successful build

Additional information

No response

@alexey-igrychev
Copy link
Member

Unfortunately, this is the current limitation of Docker. There is no way to use a Dockerfile not from context when building an image for a compressed context that reads from STDIN (default werf behavior).

There are no such limitations when using the Buildah backend, and we can add such a possibility. I'll make sure to keep you informed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants