diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-04-30 15:58:04 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-04-30 15:58:04 +0200 |
commit | cab7bfd15e55b1cde48c9cd4f84032e1b9cc8ec9 (patch) | |
tree | fb7ac1fe5ebc4cfaf1378211d3e1dcde53b8a6f6 | |
parent | 7e48e099aa968307d2b99720a076b4bdc706b5fd (diff) | |
download | homer-cab7bfd15e55b1cde48c9cd4f84032e1b9cc8ec9.tar.gz homer-cab7bfd15e55b1cde48c9cd4f84032e1b9cc8ec9.tar.zst homer-cab7bfd15e55b1cde48c9cd4f84032e1b9cc8ec9.zip |
Apply lastest update to arm dockerfile
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | Dockerfile.arm32v7 | 16 | ||||
-rw-r--r-- | Dockerfile.arm64v8 | 16 |
3 files changed, 19 insertions, 15 deletions
@@ -26,7 +26,7 @@ WORKDIR /www | |||
26 | COPY lighttpd.conf /lighttpd.conf | 26 | COPY lighttpd.conf /lighttpd.conf |
27 | COPY entrypoint.sh /entrypoint.sh | 27 | COPY entrypoint.sh /entrypoint.sh |
28 | COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/ | 28 | COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/ |
29 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 29 | COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets |
30 | 30 | ||
31 | USER ${UID}:${GID} | 31 | USER ${UID}:${GID} |
32 | 32 | ||
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 7e1d92b..59a2639 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 | |||
@@ -21,23 +21,25 @@ 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 lighttpd | 24 | ENV GID 1000 |
25 | ENV GROUP lighttpd | 25 | ENV UID 1000 |
26 | ENV GID 911 | ||
27 | ENV UID 911 | ||
28 | ENV PORT 8080 | 26 | ENV PORT 8080 |
29 | ENV SUBFOLDER "/_" | 27 | ENV SUBFOLDER "/_" |
28 | ENV INIT_ASSETS 1 | ||
30 | 29 | ||
31 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 30 | RUN addgroup -S lighttpd -g ${GID} && adduser -D -S -u ${UID} lighttpd lighttpd && \ |
32 | apk add -U --no-cache lighttpd && \ | 31 | apk add -U --no-cache lighttpd && \ |
33 | rm /usr/bin/qemu-arm-static | 32 | rm /usr/bin/qemu-arm-static |
34 | 33 | ||
35 | WORKDIR /www | 34 | WORKDIR /www |
36 | 35 | ||
37 | COPY lighttpd.conf /lighttpd.conf | 36 | COPY lighttpd.conf /lighttpd.conf |
38 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 37 | COPY entrypoint.sh /entrypoint.sh |
38 | COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/ | ||
39 | COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets | ||
40 | |||
41 | USER ${UID}:${GID} | ||
39 | 42 | ||
40 | USER ${USER} | ||
41 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ | 43 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ |
42 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | 44 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 |
43 | 45 | ||
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 573a2e4..d948db7 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -21,23 +21,25 @@ FROM arm64v8/alpine:3.11 | |||
21 | 21 | ||
22 | COPY --from=qemu qemu-aarch64-static /usr/bin/ | 22 | COPY --from=qemu qemu-aarch64-static /usr/bin/ |
23 | 23 | ||
24 | ENV USER lighttpd | 24 | ENV GID 1000 |
25 | ENV GROUP lighttpd | 25 | ENV UID 1000 |
26 | ENV GID 911 | ||
27 | ENV UID 911 | ||
28 | ENV PORT 8080 | 26 | ENV PORT 8080 |
29 | ENV SUBFOLDER "/_" | 27 | ENV SUBFOLDER "/_" |
28 | ENV INIT_ASSETS 1 | ||
30 | 29 | ||
31 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 30 | RUN addgroup -S lighttpd -g ${GID} && adduser -D -S -u ${UID} lighttpd lighttpd && \ |
32 | apk add -U --no-cache lighttpd && \ | 31 | apk add -U --no-cache lighttpd && \ |
33 | rm /usr/bin/qemu-aarch64-static | 32 | rm /usr/bin/qemu-aarch64-static |
34 | 33 | ||
35 | WORKDIR /www | 34 | WORKDIR /www |
36 | 35 | ||
37 | COPY lighttpd.conf /lighttpd.conf | 36 | COPY lighttpd.conf /lighttpd.conf |
38 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 37 | COPY entrypoint.sh /entrypoint.sh |
38 | COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/ | ||
39 | COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets | ||
40 | |||
41 | USER ${UID}:${GID} | ||
39 | 42 | ||
40 | USER ${USER} | ||
41 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ | 43 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ |
42 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | 44 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 |
43 | 45 | ||