I have a docker-compose file that has the following services in it:
service1:
privileged: true
image: storjlabs/billing
build:
context: ../
dockerfile: ../../service1/dockerfiles/service1-development.dockerfile
service2:
privileged: true
build:
context: ../
dockerfile: ./dockerfiles/service2-development.dockerfile
Is there a way to access files outside of the docker context?
If I try it now, I get an error that says ERROR: Forbidden path outside the build context
and spits out the file path. I know I can edit the context to get this to work, but that feels wrong to do and I'm worried about far reaching consequences that might have in our build process.
Any suggestions would be greatly appreciated.