aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-04-30 15:58:04 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-04-30 15:58:04 +0200
commitcab7bfd15e55b1cde48c9cd4f84032e1b9cc8ec9 (patch)
treefb7ac1fe5ebc4cfaf1378211d3e1dcde53b8a6f6
parent7e48e099aa968307d2b99720a076b4bdc706b5fd (diff)
downloadhomer-cab7bfd15e55b1cde48c9cd4f84032e1b9cc8ec9.tar.gz
homer-cab7bfd15e55b1cde48c9cd4f84032e1b9cc8ec9.tar.zst
homer-cab7bfd15e55b1cde48c9cd4f84032e1b9cc8ec9.zip
Apply lastest update to arm dockerfile
-rw-r--r--Dockerfile2
-rw-r--r--Dockerfile.arm32v716
-rw-r--r--Dockerfile.arm64v816
3 files changed, 19 insertions, 15 deletions
diff --git a/Dockerfile b/Dockerfile
index 0e9d51a..4d0c4e8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,7 +26,7 @@ WORKDIR /www
26COPY lighttpd.conf /lighttpd.conf 26COPY lighttpd.conf /lighttpd.conf
27COPY entrypoint.sh /entrypoint.sh 27COPY entrypoint.sh /entrypoint.sh
28COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/ 28COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/
29COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets 29COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets
30 30
31USER ${UID}:${GID} 31USER ${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
22COPY --from=qemu qemu-arm-static /usr/bin/ 22COPY --from=qemu qemu-arm-static /usr/bin/
23 23
24ENV USER lighttpd 24ENV GID 1000
25ENV GROUP lighttpd 25ENV UID 1000
26ENV GID 911
27ENV UID 911
28ENV PORT 8080 26ENV PORT 8080
29ENV SUBFOLDER "/_" 27ENV SUBFOLDER "/_"
28ENV INIT_ASSETS 1
30 29
31RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 30RUN 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
35WORKDIR /www 34WORKDIR /www
36 35
37COPY lighttpd.conf /lighttpd.conf 36COPY lighttpd.conf /lighttpd.conf
38COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 37COPY entrypoint.sh /entrypoint.sh
38COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/
39COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets
40
41USER ${UID}:${GID}
39 42
40USER ${USER}
41HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ 43HEALTHCHECK --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
22COPY --from=qemu qemu-aarch64-static /usr/bin/ 22COPY --from=qemu qemu-aarch64-static /usr/bin/
23 23
24ENV USER lighttpd 24ENV GID 1000
25ENV GROUP lighttpd 25ENV UID 1000
26ENV GID 911
27ENV UID 911
28ENV PORT 8080 26ENV PORT 8080
29ENV SUBFOLDER "/_" 27ENV SUBFOLDER "/_"
28ENV INIT_ASSETS 1
30 29
31RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 30RUN 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
35WORKDIR /www 34WORKDIR /www
36 35
37COPY lighttpd.conf /lighttpd.conf 36COPY lighttpd.conf /lighttpd.conf
38COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 37COPY entrypoint.sh /entrypoint.sh
38COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/
39COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets
40
41USER ${UID}:${GID}
39 42
40USER ${USER}
41HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ 43HEALTHCHECK --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