We have a monorepo setup in which each folder has a typescript / node service. There is also a shared /types folder which we pull into each project using typescript project references.
Since you cannot COPY a parent folder, locally we use:
docker build -f Dockerfile ..
Which works fine, but trying the same thing using cloudbuild.yaml and the docker builder throws the following error, about a missing file descriptor?
docker.io/library/docker:latest
error checking context: 'file ('/proc/1/fd/5') not found or excluded by .dockerignore'.
ERROR
ERROR: build step 0 "docker" failed: step exited with non-zero status: 1
------------------------------------------------------------------------------------------------------------------------------------------------
ERROR: (gcloud.builds.submit) build dc31344a-b836-4089-87ab-e6ce7c69cab3 completed with status "FAILURE"
So how can we use gcloud build with cloud run services in a mono repo and still pull in our shared types?