aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 0a43027..f24d7be 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,18 +12,19 @@ RUN yarn build
12# production stage 12# production stage
13FROM alpine:3.15 13FROM alpine:3.15
14 14
15ENV USER darkhttpd 15ENV USER lighttpd
16ENV GROUP darkhttpd 16ENV GROUP lighttpd
17ENV GID 911 17ENV GID 911
18ENV UID 911 18ENV UID 911
19ENV PORT 8080 19ENV PORT 8080
20 20
21RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 21RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
22 apk add -U --no-cache su-exec darkhttpd 22 apk add -U --no-cache lighttpd
23 23
24COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 24COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
25COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets 25COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
26COPY entrypoint.sh /entrypoint.sh 26COPY entrypoint.sh /entrypoint.sh
27COPY lighttpd.conf /lighttpd.conf
27 28
28HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ 29HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
29 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 30 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1