diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-04-10 11:55:11 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-04-30 15:39:36 +0200 |
commit | 049f85221e945b90bf87d21afe4d306839d65740 (patch) | |
tree | 1288ab580f2a274df8b507e2bbe37e2ff03c70ca /Dockerfile.arm64v8 | |
parent | cd75da69f9e57c3fe0f63c3ed6def0577d75a47c (diff) | |
download | homer-049f85221e945b90bf87d21afe4d306839d65740.tar.gz homer-049f85221e945b90bf87d21afe4d306839d65740.tar.zst homer-049f85221e945b90bf87d21afe4d306839d65740.zip |
Simplify the container starting process to allow it to run with a
unprivileged user
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r-- | Dockerfile.arm64v8 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index f9e6675..573a2e4 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -32,14 +32,16 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} & | |||
32 | apk add -U --no-cache lighttpd && \ | 32 | apk add -U --no-cache lighttpd && \ |
33 | rm /usr/bin/qemu-aarch64-static | 33 | rm /usr/bin/qemu-aarch64-static |
34 | 34 | ||
35 | COPY entrypoint.sh /entrypoint.sh | 35 | WORKDIR /www |
36 | COPY lighttpd.conf /lighttpd.conf | ||
37 | 36 | ||
37 | COPY lighttpd.conf /lighttpd.conf | ||
38 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 38 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
39 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 39 | |
40 | USER ${USER} | ||
40 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ | 41 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ |
41 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | 42 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 |
42 | 43 | ||
43 | EXPOSE ${PORT} | 44 | EXPOSE ${PORT} |
44 | VOLUME /www/assets | 45 | VOLUME /www/assets |
45 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 46 | |
47 | CMD ["lighttpd", "-D", "-f", "/lighttpd.conf"] | ||