aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-03-20 21:46:36 +0100
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-04-30 10:46:00 +0200
commitcd75da69f9e57c3fe0f63c3ed6def0577d75a47c (patch)
tree6e290cc8ddc3f34585bb768a2b020f38b7434782 /Dockerfile
parentb6b31e440c7915e82fe8b9a4b93083ec9fb2e9fd (diff)
downloadhomer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.tar.gz
homer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.tar.zst
homer-cd75da69f9e57c3fe0f63c3ed6def0577d75a47c.zip
Alias subfolder hosting
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index f24d7be..ffe50c4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,15 +17,16 @@ ENV GROUP lighttpd
17ENV GID 911 17ENV GID 911
18ENV UID 911 18ENV UID 911
19ENV PORT 8080 19ENV PORT 8080
20ENV SUBFOLDER "/_"
20 21
21RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 22RUN 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
24COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
25COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
26COPY entrypoint.sh /entrypoint.sh 25COPY entrypoint.sh /entrypoint.sh
27COPY lighttpd.conf /lighttpd.conf 26COPY lighttpd.conf /lighttpd.conf
28 27
28COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
29COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
29HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ 30HEALTHCHECK --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