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

fix(docker): add permissions to config and plugins folder to the $VERDACCIO_USER_UID user #2249

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yml
Expand Up @@ -14,6 +14,7 @@ on:
- '.yarn/**'
- '.yarnrc.yaml'
- '.pnp.js'
- 'Dockerfile'
branches:
- '**'
tags:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Expand Up @@ -48,6 +48,8 @@ ADD conf/docker.yaml /verdaccio/conf/config.yaml
RUN adduser -u $VERDACCIO_USER_UID -S -D -h $VERDACCIO_APPDIR -g "$VERDACCIO_USER_NAME user" -s /sbin/nologin $VERDACCIO_USER_NAME && \
chmod -R +x $VERDACCIO_APPDIR/bin $VERDACCIO_APPDIR/docker-bin && \
chown -R $VERDACCIO_USER_UID:root /verdaccio/storage && \
chown -R $VERDACCIO_USER_UID:root /verdaccio/conf && \
chown -R $VERDACCIO_USER_UID:root /verdaccio/plugins && \
chmod -R g=u /verdaccio/storage /etc/passwd

USER $VERDACCIO_USER_UID
Expand Down