]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
use env for USER instruction
authorCalvin Bui <3604363+calvinbui@users.noreply.github.com>
Thu, 11 Jun 2020 01:31:46 +0000 (11:31 +1000)
committerCalvin Bui <3604363+calvinbui@users.noreply.github.com>
Thu, 11 Jun 2020 01:31:46 +0000 (11:31 +1000)
Dockerfile
Dockerfile.arm32v7
Dockerfile.arm64v8

index ea28aa3ab2f303eb738c1f4531e895007233734c..fd1120f6a1229eaaab8d58a70b1933066f757ee5 100644 (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"]
\ No newline at end of file
index 2113df58f2c7d7a0006601ed68a0666e0e1b7632..0b83a06f301571ba52c79ed32c498ce219092e5f 100644 (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"]
index 90d35f355f7b4c176759ae24784685c2118f2f76..c007d0495ac93fe818fc7c34ecb2267f3f8f9692 100644 (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"]