diff options
author | AgileVirus <agilevirus@pop-os.localdomain> | 2020-07-09 18:47:33 +0100 |
---|---|---|
committer | AgileVirus <agilevirus@pop-os.localdomain> | 2020-07-09 18:47:33 +0100 |
commit | fd9237eb52affce2d202ff3f21ef47a8bb3cf542 (patch) | |
tree | 66735ac61bb428678646340074972ce2f5b6ab1b /Dockerfile.arm64v8 | |
parent | 4bfcc5bc955257d66b792a00f1ca44fa42616255 (diff) | |
download | homer-fd9237eb52affce2d202ff3f21ef47a8bb3cf542.tar.gz homer-fd9237eb52affce2d202ff3f21ef47a8bb3cf542.tar.zst homer-fd9237eb52affce2d202ff3f21ef47a8bb3cf542.zip |
Added su-exec to ARM dockerfiles and removed USER line
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r-- | Dockerfile.arm64v8 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 4e307d8..479f8a1 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -28,14 +28,13 @@ ENV UID 911 | |||
28 | ENV PORT 8080 | 28 | ENV PORT 8080 |
29 | 29 | ||
30 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 30 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ |
31 | apk add -U darkhttpd && \ | 31 | apk add -U darkhttpd su-exec && \ |
32 | rm /usr/bin/qemu-aarch64-static | 32 | rm /usr/bin/qemu-aarch64-static |
33 | 33 | ||
34 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 34 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets |
36 | COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh | 36 | COPY entrypoint.sh /entrypoint.sh |
37 | 37 | ||
38 | USER ${USER} | ||
39 | EXPOSE ${PORT} | 38 | EXPOSE ${PORT} |
40 | VOLUME /www/assets | 39 | VOLUME /www/assets |
41 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 40 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] |