11 ERROR: failed to calculate checksum of ref 584d62f5-11d9-4074-87e4-acacf60905a6::lk5e1y6f6z47pufppid6zsnff: "/apps/demo-app/tsconfig.production.json": not found
BuildKit logs
No response
Additional info
Building the docker image locally from the aforementioned build context works (docker build -f ./apps/demo-app/Dockerfile .). My gut feeling is that somehow build-push-action is reading the path provided to the COPY command as absolute rather than relative to the path context.
Update: Somehow, the file sytem on the Github action went nuts, and couldn't see the file. This is why it worked locally. I renamed it and the Github action is working now.
Contributing guidelines
I've found a bug, and:
Description
Copying a file from a Dockerfile fails despite providing a path context.
Expected behaviour
The behaviour observed when building the docker image locally.
Actual behaviour
The file can't be located, resulting in an error
Repository URL
No response
Workflow run URL
No response
YAML workflow
Workflow logs
11 [builder 5/7] COPY /apps/demo-app/tsconfig.production.json ./tsconfig.production.json
11 ERROR: failed to calculate checksum of ref 584d62f5-11d9-4074-87e4-acacf60905a6::lk5e1y6f6z47pufppid6zsnff: "/apps/demo-app/tsconfig.production.json": not found
BuildKit logs
No response
Additional info
Building the docker image locally from the aforementioned build context works (
docker build -f ./apps/demo-app/Dockerfile .
). My gut feeling is that somehowbuild-push-action
is reading the path provided to theCOPY
command as absolute rather than relative to the path context.