use env for USER instruction

This commit is contained in:
Calvin Bui 2020-06-11 11:31:46 +10:00
parent a23914d573
commit ac1442c640
No known key found for this signature in database
GPG Key ID: 7CE1A3592DA0F6FB
3 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,6 @@ ENV UID 911
RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
apk add -U darkhttpd
USER darkhttpd
USER ${USER}
ENTRYPOINT ["darkhttpd","/www/", "--no-listing"]

View File

@ -31,6 +31,6 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} &
apk add -U darkhttpd && \
rm /usr/bin/qemu-arm-static
USER darkhttpd
USER ${USER}
ENTRYPOINT ["darkhttpd","/www/","--no-listing"]

View File

@ -31,6 +31,6 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} &
apk add -U darkhttpd && \
rm /usr/bin/qemu-aarch64-static
USER darkhttpd
USER ${USER}
ENTRYPOINT ["darkhttpd","/www/","--no-listing"]