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 | |
parent | b6b31e440c7915e82fe8b9a4b93083ec9fb2e9fd (diff) | |
download | homer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.tar.gz homer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.tar.zst homer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.zip |
Alias subfolder hosting
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -17,15 +17,16 @@ ENV GROUP lighttpd | |||
17 | ENV GID 911 | 17 | ENV GID 911 |
18 | ENV UID 911 | 18 | ENV UID 911 |
19 | ENV PORT 8080 | 19 | ENV PORT 8080 |
20 | ENV SUBFOLDER "/_" | ||
20 | 21 | ||
21 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 22 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ |
22 | apk add -U --no-cache lighttpd | 23 | apk add -U --no-cache lighttpd |
23 | 24 | ||
24 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | ||
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | ||
26 | COPY entrypoint.sh /entrypoint.sh | 25 | COPY entrypoint.sh /entrypoint.sh |
27 | COPY lighttpd.conf /lighttpd.conf | 26 | COPY lighttpd.conf /lighttpd.conf |
28 | 27 | ||
28 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | ||
29 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | ||
29 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ | 30 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ |
30 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | 31 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 |
31 | 32 | ||