diff options
author | Calvin Bui <3604363+calvinbui@users.noreply.github.com> | 2020-06-11 11:31:46 +1000 |
---|---|---|
committer | Calvin Bui <3604363+calvinbui@users.noreply.github.com> | 2020-06-11 11:31:46 +1000 |
commit | ac1442c640645b1b80b98fc3c25504df439ea1fa (patch) | |
tree | 3ec172470925f9cd20cec0ae167149e10c1aa12a | |
parent | a23914d573841f9088cc9cd69bce24c28f432acf (diff) | |
download | homer-ac1442c640645b1b80b98fc3c25504df439ea1fa.tar.gz homer-ac1442c640645b1b80b98fc3c25504df439ea1fa.tar.zst homer-ac1442c640645b1b80b98fc3c25504df439ea1fa.zip |
use env for USER instruction
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | Dockerfile.arm32v7 | 2 | ||||
-rw-r--r-- | Dockerfile.arm64v8 | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -22,6 +22,6 @@ ENV UID 911 | |||
22 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 22 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ |
23 | apk add -U darkhttpd | 23 | apk add -U darkhttpd |
24 | 24 | ||
25 | USER darkhttpd | 25 | USER ${USER} |
26 | 26 | ||
27 | ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file | 27 | 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} & | |||
31 | apk add -U darkhttpd && \ | 31 | apk add -U darkhttpd && \ |
32 | rm /usr/bin/qemu-arm-static | 32 | rm /usr/bin/qemu-arm-static |
33 | 33 | ||
34 | USER darkhttpd | 34 | USER ${USER} |
35 | 35 | ||
36 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] | 36 | 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} & | |||
31 | apk add -U darkhttpd && \ | 31 | apk add -U darkhttpd && \ |
32 | rm /usr/bin/qemu-aarch64-static | 32 | rm /usr/bin/qemu-aarch64-static |
33 | 33 | ||
34 | USER darkhttpd | 34 | USER ${USER} |
35 | 35 | ||
36 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] | 36 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] |