Can't extend 1.15.1 image with own packages
helmut72 opened this issue · 2 comments
helmut72 commented
I just wanted to create my own image with additional apk packages from :1.15.1
, but the problem is that you set in 1.15.1 ARG USER=webhookd
and ARG UID=1000
. Now apk install ...
doesn't work.
1.15.0 works because there are no ARG USER and UID variables.
ncarlier commented
You must restore the root user while using the apk :
FROM ncarlier/webhookd:1.15.1
# use root in order to install packages
USER root
# install packages
RUN apk add --no-cache curl ...
# restore webhookd user
USER $USER
helmut72 commented
I had a typo. Not my best days this weekend. Thank you!