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

set worker's home directory #1618

Closed
wants to merge 1 commit into from
Closed

set worker's home directory #1618

wants to merge 1 commit into from

Conversation

optman
Copy link

@optman optman commented Feb 18, 2024

some package depends on home directory to store cache data. If don't set, the home directory will point to /nonexistent, then those packages may show permission deny warning. It also prevents vs-code to attach to the container.

@@ -34,7 +34,7 @@ ENV PORT=8080
EXPOSE 8080

# Prepare a non-root user
RUN adduser --system worker
RUN adduser --system --home /home/worker worker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 This is indeed important

Duplicated in my (larger) PR #1792

@jaluma
Copy link
Collaborator

jaluma commented Aug 2, 2024

Closed. Merged #1792

@jaluma jaluma closed this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants