diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-03-20 21:46:36 +0100 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-04-30 10:46:00 +0200 |
commit | cd75da69f9e57c3fe0f63c3ed6def0577d75a47c (patch) | |
tree | 6e290cc8ddc3f34585bb768a2b020f38b7434782 /Dockerfile.arm64v8 | |
parent | b6b31e440c7915e82fe8b9a4b93083ec9fb2e9fd (diff) | |
download | homer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.tar.gz homer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.tar.zst homer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.zip |
Alias subfolder hosting
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r-- | Dockerfile.arm64v8 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 7d772f0..f9e6675 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -26,16 +26,17 @@ 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 lighttpd && \ | 32 | apk add -U --no-cache lighttpd && \ |
32 | rm /usr/bin/qemu-aarch64-static | 33 | rm /usr/bin/qemu-aarch64-static |
33 | 34 | ||
34 | 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 | 35 | COPY entrypoint.sh /entrypoint.sh |
37 | COPY lighttpd.conf /lighttpd.conf | 36 | COPY lighttpd.conf /lighttpd.conf |
38 | 37 | ||
38 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | ||
39 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | ||
39 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ | 40 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ |
40 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | 41 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 |
41 | 42 | ||