Nice To Know
Published:
Docker Nice to know
- Docker builds may only access directories that are below the build context directory. If you need to include a dependency from above the build directory there different solutions:
- Run this from the same directory level of the dependency you want to include:
docker build -t app -f ai-service/Dockerfile .
- In docker-compose this might look like this:
ai-service: container_name: ai-service build: context: ../ dockerfile: ai-service/Dockerfile
- Run this from the same directory level of the dependency you want to include:
Git Nice To Know
Error message: Filename too long during git clone of repository. Solution: Run the following code inside cmd as an administrator.
git config --system core.longpaths true
If this does not work, run the following during clone of repo.
git clone -c core.longpaths=true <repo-url>