Hi, I have a doubt, I don’t know how to resolve, I...
# general
c
Hi, I have a doubt, I don’t know how to resolve, I am generating a Docker image with the docker plugin for pants, but I would like some files that are in different directory that the
Dockerfile
but I am not sure how to include. The files are some openapi files for swagger if this can help
c
if the files you need are not in the subtree of your
Dockerfile
then you need to change the default “build context root” for that image so it is in a parent location of all the files you need. https://www.pantsbuild.org/docs/reference-docker_image#codecontext_rootcode