Docker build
I am trying to build my docker image. I able to build this in docker without using teamcity.
When trying to build in team city I am getting below.
COPY failed: file not found in build context or excluded by .dockerignore: stat left_align/requirements.txt: file does not exist
Is there an specific settings that need to be done to fix this?
Any help would be appreciated.
Please sign in to leave a comment.
Hello,
Are you using the Docker build runner? From the error above, it seems that you need to review your build step configuration and adjust to the right Path to File and/or Context folder. You can also try to see if it works with the command line runner, as indicated in the following guide, and change after to the docker build runner once you figured out a working configuration for your build step in TC:
https://www.jetbrains.com/help/teamcity/common-problems.html#Build+works+locally+but+fails+or+misbehaves+in+TeamCity
Thank you,
Guilherme