2 FROM node:lts-alpine as build-stage
7 RUN yarn install --frozen-lockfile
21 RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
22 apk add -U --no-cache su-exec darkhttpd
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
26 COPY entrypoint.sh /entrypoint.sh
28 HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
29 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
33 ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]