Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1

I get an error when trying to deploy a dash app with a docker container using google cloud run. I hav done this a few times before with other projects but with this I am getting the following error log:
starting build "cc22f3e0-5bb7-42b8-a6b4-8668c4e92fa8"

FETCHSOURCE
Fetching storage object: gs://bionic-ascent-441302-u8_cloudbuild/source/1731209527.855116-d41b7d9187b64039a3ef1330844f6568.tgz#1731209529558081
Copying gs://bionic-ascent-441302-u8_cloudbuild/source/1731209527.855116-d41b7d9187b64039a3ef1330844f6568.tgz#1731209529558081...
/ [0 files][    0.0 B/ 22.7 KiB]                                                
/ [1 files][ 22.7 KiB/ 22.7 KiB]                                                
Operation completed over 1 objects/22.7 KiB.                                    
BUILD
Already have image (with digest): gcr.io/cloud-builders/docker
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /workspace/Dockerfile: no such file or directory
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
0 1 241
1 REPLY 1

Hi @Alfredomg49

Welcome to Google Cloud Community!

Can you provide the content of your cloudbuild.yaml file? Also, please provide the command you are using when deploying your app. The error is encountered usually if the directory is not present or your Dockerfile is not in the same working directory.

Verify that your Dockerfile is correctly placed in the directory you’re building the container from. Double-check the path used in your deployment configuration to point to the correct location of the Dockerfile. You can also check on this post from Server Fault for some insights. Also, retrying to run the deploy command sometimes will fix the issue.

I hope the above information is helpful.