diff options
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r-- | Dockerfile.arm64v8 | 16 |
1 files changed, 9 insertions, 7 deletions
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 | ||