Dockerfile user change crashes #4629
Unanswered
DeanAyalon
asked this question in
Q&A
Replies: 1 comment
-
Without the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
As it currently stands, I use a custom dockerfile to run Verdaccio with a few package installations
My dockerfile switches to root to allow
apk add
Afterwards, the container runs as it should, but with the addition of this warning:
And so, as written within the Verdaccio documentation, I have modified my dockerfile like so:
As stated within the dockerfile comments, if I add the
USER verdaccio
orUSER $VERDACCIO_USER_UID
, the container crashes immediatelyDocker logs are empty
Docker inspect shows exit code 2, no error message
What am I doing wrong?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions