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

Add user creation and switchover to multistage.Dockerfile. #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikedlr
Copy link

@mikedlr mikedlr commented Jan 8, 2025

Creating a user app and changing the user to app provides a chance of isolation between the application and the root inside the container blocking some security vulnerabilities.

There's already a --chown instruction in the Dockerfile so this was probably the intention. Add the needed commands.

Creating a user app and changing the user to app provides a chance of isolation between the application and the root inside the container blocking some security vulnerabilities. 

There's already a --chown instruction in the Dockerfile so this was probably the intention. Add the needed commands.
@mikedlr
Copy link
Author

mikedlr commented Jan 8, 2025

Aims to fix #29

@konstin
Copy link
Member

konstin commented Jan 10, 2025

I'm getting a permission error when running this dockerfile, similar as in #32:

docker build -f multistage.Dockerfile . -t uv-multistage
docker run --rm -it --publish 8000:8000 uv-multistage
[...]
PermissionError: Permission denied (os error 13) about ["/etc/ssl/private"]
[...]

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

Successfully merging this pull request may close these issues.

2 participants