fix: allow config changes in docker image (#5305)
This commit is contained in:
@@ -45,8 +45,8 @@ ADD packages/config/src/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 && \
|
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/packages/verdaccio/bin $VERDACCIO_APPDIR/docker-bin && \
|
chmod -R +x $VERDACCIO_APPDIR/packages/verdaccio/bin $VERDACCIO_APPDIR/docker-bin && \
|
||||||
chown -R $VERDACCIO_USER_UID:root /verdaccio/storage && \
|
chown -R $VERDACCIO_USER_UID:root /verdaccio/storage /verdaccio/conf && \
|
||||||
chmod -R g=u /verdaccio/storage /etc/passwd
|
chmod -R g=u /verdaccio/storage /verdaccio/conf /etc/passwd
|
||||||
|
|
||||||
USER $VERDACCIO_USER_UID
|
USER $VERDACCIO_USER_UID
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user