Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error finding Dockerfile #9

Closed
nrfribeiro opened this issue Dec 30, 2020 · 5 comments
Closed

Error finding Dockerfile #9

nrfribeiro opened this issue Dec 30, 2020 · 5 comments

Comments

@nrfribeiro
Copy link

Hi,
I'm getting the following error when you are running the following command.
docker build -t edi-safety-proxy:temporary --file ./Dockerfile .

Error
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /github/workspace/Dockerfile: no such file or directory

My Doockerfile is in the root of github. Can you help?

@RafikFarhad
Copy link
Owner

Hello @nrfribeiro , thanks for using the push-to-gcr-github-action

It will be more helpful to debug if you provide your .yml file for the github-action.
It seems like you are passing dockerfile parameter though it is not needed.
Are you specifying dockerfile in the *.yml file?
If your Dockerfile is the root directory, then you don't have to specify that.

@RafikFarhad
Copy link
Owner

Please reopen this if your issue is not solved yet. Thanks ✊

@krtk6160
Copy link
Contributor

Hi,
I'm getting the following error when you are running the following command.
docker build -t edi-safety-proxy:temporary --file ./Dockerfile .

Error
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /github/workspace/Dockerfile: no such file or directory

My Doockerfile is in the root of github. Can you help?

I had the same issue. I solved it by using a checkout action right before the build docker image action.

@RafikFarhad I think it would be helpful to include this in the README.md file.

@RafikFarhad
Copy link
Owner

Hello @krtk6160,
Thanks for your great observation.
I have added the checkout step in all the example.

@RafikFarhad
Copy link
Owner

Hey @nrfribeiro, please follow the current example from the ReadMe.md.
There is one extra steps that you need to be added.
Sorry for the inconvenience.
Hope this action will help you building awesome systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants