-COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
-COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
+WORKDIR /www
+
+COPY lighttpd.conf /lighttpd.conf
+COPY entrypoint.sh /entrypoint.sh
+COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/
+COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets
+
+USER ${UID}:${GID}
+
+HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
+ CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1