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