Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

Update Dockerfile.rootless to use Curl instead of wget

Katosf30ccec45178
diff --git a/Dockerfile.rootless b/Dockerfile.rootless
index a3357992..cb6bdc7f 100644
--- a/Dockerfile.rootless
+++ b/Dockerfile.rootless
@@ -53,19 +53,19 @@ ENV HBOX_STORAGE_SQLITE_URL=/data/homebox.db?_fk=1&_time_format=sqlite
# Copy the binary and data directory, change ownership
COPY --from=builder /go/bin/api /app
COPY --from=builder /data /data
-COPY --from=public.ecr.aws/docker/library/alpine:latest /bin/wget /usr/bin/wget
-COPY --from=public.ecr.aws/docker/library/alpine:latest /lib /lib
-COPY --from=public.ecr.aws/docker/library/alpine:latest /usr/lib /usr/lib
+# Add curl instead of wget from alpine
+COPY --from=public.ecr.aws/docker/library/alpine:latest /usr/bin/curl /usr/bin/curl
LABEL Name=homebox Version=0.0.1
LABEL org.opencontainers.image.source="https://github.com/sysadminsmedia/homebox"
EXPOSE 7745
+# Update HEALTHCHECK to use curl
HEALTHCHECK --interval=30s \
--timeout=5s \
--start-period=5s \
--retries=3 \
- CMD ["/usr/bin/wget", "--no-verbose", "--tries=1", "-O", "-", "http://localhost:7745/api/v1/status"]
+ CMD ["/usr/bin/curl", "--silent", "--fail", "http://localhost:7745/api/v1/status"]
VOLUME ["/data"]