Using --context cause flatten folders #2235
Labels
area/filesystems
For all bugs related to kaniko container filesystems (mounting issues etc)
area/permissions
area/uid
categorized
differs-from-docker
kind/bug
Something isn't working
priority/p0
Highest priority. Break user flow. We are actively looking at delivering it.
priority/p1
Basic need feature compatibility with docker build. we should be working on this next.
works-with-docker
Actual behavior
Using --context causing flatten all the folders
To Reproduce
Steps to reproduce the behavior:
I am working on a gitlab repository. The folder structure looks like the following:
I use a command as follows in gitlab-ci.yaml
My dockerfile looks like as follows:
Then I found out kaniko flatten folders, so in my root folder, it looks like:
So when I use
COPY . /root/ws/src/pkg/
, it will copy replicated folder.Expected behavior
I expect it will keep the folder structure as the repository, and copy it into docker workspace
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: