Skip to content

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

Add MQTT to Docker (#1228)

Fuzzy1ef882626144
diff --git a/Dockerfile b/Dockerfile
index c2484382..591a0d6d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -73,7 +73,7 @@ ENV HBOX_STORAGE_PREFIX_PATH=data
ENV HBOX_DATABASE_SQLITE_PATH=/data/homebox.db?_pragma=busy_timeout=2000&_pragma=journal_mode=WAL&_fk=1&_time_format=sqlite
# Install necessary runtime dependencies
-RUN apk --no-cache add ca-certificates wget && \
+RUN apk --no-cache add ca-certificates wget mosquitto-clients && \
if [ "$TARGETARCH" != "arm" ] || [ "$TARGETARCH" != "riscv64" ]; then apk --no-cache add libwebp libavif libheif libjxl; fi
# Create application directory and copy over built Go binary
diff --git a/Dockerfile.rootless b/Dockerfile.rootless
index ba7b0656..a2155fbd 100644
--- a/Dockerfile.rootless
+++ b/Dockerfile.rootless
@@ -75,7 +75,7 @@ ENV HBOX_STORAGE_PREFIX_PATH=data
ENV HBOX_DATABASE_SQLITE_PATH=/data/homebox.db?_pragma=busy_timeout=2000&_pragma=journal_mode=WAL&_fk=1&_time_format=sqlite
# Install necessary runtime dependencies
-RUN apk --no-cache add ca-certificates wget && \
+RUN apk --no-cache add ca-certificates wget mosquitto-clients && \
if [ "$TARGETARCH" != "arm" ] || [ "$TARGETARCH" != "riscv64" ]; then apk --no-cache add libwebp libavif libheif libjxl; fi
# Create a nonroot user with UID/GID 65532