aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile.arm64v8
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-04-30 15:42:31 +0200
committerGitHub <noreply@github.com>2022-04-30 15:42:31 +0200
commit7e48e099aa968307d2b99720a076b4bdc706b5fd (patch)
tree971b362eb335628d818a3faf14ba4a6d9749d850 /Dockerfile.arm64v8
parentaf0a6e89c9104ed69766e41f032a4b610ef67ccd (diff)
parent4f56c2c11baad8f98c338989fb0cd8e5af78d0c8 (diff)
downloadhomer-7e48e099aa968307d2b99720a076b4bdc706b5fd.tar.gz
homer-7e48e099aa968307d2b99720a076b4bdc706b5fd.tar.zst
homer-7e48e099aa968307d2b99720a076b4bdc706b5fd.zip
Merge pull request #421 from bastienwirtz/docker-rework
Docker rework
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r--Dockerfile.arm64v816
1 files changed, 10 insertions, 6 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8
index cd15e4a..573a2e4 100644
--- a/Dockerfile.arm64v8
+++ b/Dockerfile.arm64v8
@@ -21,23 +21,27 @@ FROM arm64v8/alpine:3.11
21 21
22COPY --from=qemu qemu-aarch64-static /usr/bin/ 22COPY --from=qemu qemu-aarch64-static /usr/bin/
23 23
24ENV USER darkhttpd 24ENV USER lighttpd
25ENV GROUP darkhttpd 25ENV GROUP lighttpd
26ENV GID 911 26ENV GID 911
27ENV UID 911 27ENV UID 911
28ENV PORT 8080 28ENV PORT 8080
29ENV SUBFOLDER "/_"
29 30
30RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 31RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
31 apk add -U --no-cache darkhttpd su-exec && \ 32 apk add -U --no-cache lighttpd && \
32 rm /usr/bin/qemu-aarch64-static 33 rm /usr/bin/qemu-aarch64-static
33 34
35WORKDIR /www
36
37COPY lighttpd.conf /lighttpd.conf
34COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 38COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
36COPY entrypoint.sh /entrypoint.sh
37 39
40USER ${USER}
38HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ 41HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
39 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
40 43
41EXPOSE ${PORT} 44EXPOSE ${PORT}
42VOLUME /www/assets 45VOLUME /www/assets
43ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] 46
47CMD ["lighttpd", "-D", "-f", "/lighttpd.conf"]