diff options
author | Kirmy <mikekirmizakis@gmail.com> | 2021-12-09 13:09:09 +0100 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-04-30 10:46:00 +0200 |
commit | b6b31e440c7915e82fe8b9a4b93083ec9fb2e9fd (patch) | |
tree | 428c97994906574b552f3857f74306a0d8154842 /Dockerfile | |
parent | caf5fae8a849f740a603e0377be75df2043fae7f (diff) | |
download | homer-b6b31e440c7915e82fe8b9a4b93083ec9fb2e9fd.tar.gz homer-b6b31e440c7915e82fe8b9a4b93083ec9fb2e9fd.tar.zst homer-b6b31e440c7915e82fe8b9a4b93083ec9fb2e9fd.zip |
Replaced darkhttpd with lighttpd
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -12,18 +12,19 @@ RUN yarn build | |||
12 | # production stage | 12 | # production stage |
13 | FROM alpine:3.15 | 13 | FROM alpine:3.15 |
14 | 14 | ||
15 | ENV USER darkhttpd | 15 | ENV USER lighttpd |
16 | ENV GROUP darkhttpd | 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 | 20 | ||
21 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 21 | RUN 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 | ||
24 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 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 | 25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets |
26 | COPY entrypoint.sh /entrypoint.sh | 26 | COPY entrypoint.sh /entrypoint.sh |
27 | COPY lighttpd.conf /lighttpd.conf | ||
27 | 28 | ||
28 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ | 29 | HEALTHCHECK --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 |