Skip to content

Fix support docker specific ignore#68

Open
JaewonHur wants to merge 2 commits intoapple:mainfrom
JaewonHur:fix-docker-ignore
Open

Fix support docker specific ignore#68
JaewonHur wants to merge 2 commits intoapple:mainfrom
JaewonHur:fix-docker-ignore

Conversation

@JaewonHur
Copy link
Contributor

This PR fixes to use correct dockerignore file when custom (or under subdirectory) Dockerfile is used (apple/container#1169).

It requires FS proxy from container to specify Dockerfile path in build config.
Using Dockerfile outside build context is not supported.

This supports dockerfile and docker specific ignore file outside the
context directory.
const (
KeyContentStoreName = "container"
KeyDockerfile = "dockerfile"
KeyDockerfilePath = "dockerfile-path"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is KeyDockerignore not needed also?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I haven't updated the code. Thank you!

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

Labels

None yet