thoth-station/nepthys

container image creation fails in local system

harshad16 opened this issue · 1 comments

Describe the bug
while trying to build container image in local system with podman build, the dockerfile build is failing and responding with following error.

STEP 1: FROM fedora:31
STEP 2: ENV USER=nepthys     PIPENV_CACHE_DIR=/home/user/.cache/pipenv     HOME=/home/user/     LANG=en_US.UTF-8     GITHUB_COMMIT=1
--> Using cache 14cfe489a45ac65a12df49ddfa3416c27bf8f2690921e8a56d1a4c4897132acf
STEP 3: WORKDIR
 /home/user
--> Using cache 83d817736f5c26153a03b91f6d771c1118c87165449dc660df88a470105be024
STEP 4: COPY docker_entrypoint.sh /home/user
--> Using cache 208558d34eb01c5665ccbf0740938b91d42e37b9130cc5a119f01aa38a394081
STEP 5: COPY create_docs.sh /home/user
--> Using cache 5cd94f7d0d78cf1946742561301cad907549c79b989f9091537fc24b0227394e
STEP 6: COPY _templates /home/user/_templates
Error: error building at STEP "COPY _templates /home/user/_templates": "/home/hnalla/.local/share/containers/storage/overlay/5bc58a9373977548b1755961c1efe09eb6c72ade883a5f6b63424c569c0588ac/merged/home/user" already exists, but is not a subdirectory)

To Reproduce
Steps to reproduce the behavior:

  1. Go to clone repository of nepthys in local system.
  2. Execute 'podman build -t nepthys -f Dockerfile .'
  3. Scroll down to 'error results'
  4. See error

Expected behavior
container image builds without any interruption.

Fixed with #51