]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - Dockerfile.arm32v7
Merge pull request #260 from vosdev/main
[github/bastienwirtz/homer.git] / Dockerfile.arm32v7
index ef01d1fb2dbf1dc3ba5a21e0c30a743990d7a0fc..1621abb74800d55809dd3d3cc80eea59563e3224 100644 (file)
@@ -28,13 +28,16 @@ ENV UID 911
 ENV PORT 8080
 
 RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
-    apk add -U darkhttpd && \
+    apk add -U --no-cache darkhttpd su-exec && \
     rm /usr/bin/qemu-arm-static
 
 COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
-COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
+COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
+COPY entrypoint.sh /entrypoint.sh
+
+HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
+    CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
 
-USER ${USER}
 EXPOSE ${PORT}
-VOLUME [ "/www/config.yml", "/www/assets" ]
+VOLUME /www/assets
 ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]