From ac1442c640645b1b80b98fc3c25504df439ea1fa Mon Sep 17 00:00:00 2001 From: Calvin Bui <3604363+calvinbui@users.noreply.github.com> Date: Thu, 11 Jun 2020 11:31:46 +1000 Subject: [PATCH] use env for USER instruction --- Dockerfile | 2 +- Dockerfile.arm32v7 | 2 +- Dockerfile.arm64v8 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea28aa3..fd1120f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 2113df5..0b83a06 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 @@ -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"] diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 90d35f3..c007d04 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 @@ -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"] -- 2.41.0