diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-04-30 15:42:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 15:42:31 +0200 |
commit | 7e48e099aa968307d2b99720a076b4bdc706b5fd (patch) | |
tree | 971b362eb335628d818a3faf14ba4a6d9749d850 /Dockerfile.arm32v7 | |
parent | af0a6e89c9104ed69766e41f032a4b610ef67ccd (diff) | |
parent | 4f56c2c11baad8f98c338989fb0cd8e5af78d0c8 (diff) | |
download | homer-7e48e099aa968307d2b99720a076b4bdc706b5fd.tar.gz homer-7e48e099aa968307d2b99720a076b4bdc706b5fd.tar.zst homer-7e48e099aa968307d2b99720a076b4bdc706b5fd.zip |
Merge pull request #421 from bastienwirtz/docker-rework
Docker rework
Diffstat (limited to 'Dockerfile.arm32v7')
-rw-r--r-- | Dockerfile.arm32v7 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 95a2db1..7e1d92b 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 | |||
@@ -21,23 +21,27 @@ FROM arm32v7/alpine:3.11 | |||
21 | 21 | ||
22 | COPY --from=qemu qemu-arm-static /usr/bin/ | 22 | COPY --from=qemu qemu-arm-static /usr/bin/ |
23 | 23 | ||
24 | ENV USER darkhttpd | 24 | ENV USER lighttpd |
25 | ENV GROUP darkhttpd | 25 | ENV GROUP lighttpd |
26 | ENV GID 911 | 26 | ENV GID 911 |
27 | ENV UID 911 | 27 | ENV UID 911 |
28 | ENV PORT 8080 | 28 | ENV PORT 8080 |
29 | ENV SUBFOLDER "/_" | ||
29 | 30 | ||
30 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 31 | RUN 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-arm-static | 33 | rm /usr/bin/qemu-arm-static |
33 | 34 | ||
35 | WORKDIR /www | ||
36 | |||
37 | COPY lighttpd.conf /lighttpd.conf | ||
34 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 38 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | ||
36 | COPY entrypoint.sh /entrypoint.sh | ||
37 | 39 | ||
40 | USER ${USER} | ||
38 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ | 41 | HEALTHCHECK --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 | ||
41 | EXPOSE ${PORT} | 44 | EXPOSE ${PORT} |
42 | VOLUME /www/assets | 45 | VOLUME /www/assets |
43 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 46 | |
47 | CMD ["lighttpd", "-D", "-f", "/lighttpd.conf"] | ||