2 FROM node:lts-alpine3.18 as build-stage
7 RUN yarn install --no-cache --frozen-lockfile --non-interactive
22 RUN addgroup -S lighttpd -g ${GID} && adduser -D -S -u ${UID} lighttpd lighttpd && \
23 apk add -U --no-cache lighttpd
27 COPY lighttpd.conf /lighttpd.conf
28 COPY lighttpd-ipv6.sh /etc/lighttpd/ipv6.sh
29 COPY entrypoint.sh /entrypoint.sh
30 COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/
31 COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets
35 HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
36 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
40 ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]