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] Permission denied: '/home/sydent/src/requirements.txt' #570

Open
c-cal opened this issue Jul 3, 2023 · 5 comments
Open

[docker] Permission denied: '/home/sydent/src/requirements.txt' #570

c-cal opened this issue Jul 3, 2023 · 5 comments

Comments

@c-cal
Copy link

c-cal commented Jul 3, 2023

image

WORKDIR /home/sydent/src create the directory as root
but python -m poetry export -o requirements.txt run as sydent

@MatMaul
Copy link

MatMaul commented Jul 7, 2023

Are you sure that it is not related to something in your environment ?
The build is working fine so it looks suspicious.

@c-cal
Copy link
Author

c-cal commented Jul 7, 2023

Indeed, it's surprising that I'm the only one with this problem. I had to comment out this line (Dockerfile#L32) - which appears useless - in the Dockerfile so that the build could go ahead.

Apart from the docker version (Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.3), I don't see how my environment could interfere, which is the main purpose of Docker.

@saxsoares
Copy link

Same issue here. Could solve the problem?

@saxsoares
Copy link

I solve the problem putting:

USER root # before WORDIR /home/sydent/src
CHMOD 777 -R /home/sydent/src
USER sydent:sydent

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

4 participants