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

Docker deployment errors #15

Open
tomshomelab opened this issue Jun 15, 2023 · 1 comment
Open

Docker deployment errors #15

tomshomelab opened this issue Jun 15, 2023 · 1 comment

Comments

@tomshomelab
Copy link

tomshomelab commented Jun 15, 2023

Building the image with;
docker build -t redditsave .

gives error; "unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/administrator/Dockerfile: no such file or directory" if i create a file without an extension called "dockerfile" i can get the image to pull but then i get an error;

Step 6/11 : COPY requirements.txt /opt/app/requirements.txt
COPY failed: file not found in build context or excluded by .dockerignore: stat requirements.txt: file does not exist 

if i make the file and continue to do the install i get further errors

the docker compose file in portainer doesnt work either with the error;

failed to deploy a stack: reddit-save Pulling reddit-save Warning failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount333946681/Dockerfile: no such file or directory

im confused, is the docker area a seperate set of instructions, do i need to do the other install steps?

@samirelanduk
Copy link
Owner

What directory are you in when you run docker build -t redditsave .? You should be in the reddit-save directory, with Dockerfile and requirements.txt there already.

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

2 participants