mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
Update Dockerfile.rootless to use Curl instead of wget
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user