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