docker: add wait-for-mqtt entrypoint; remove compose override

This commit is contained in:
2025-12-28 15:17:28 +01:00
parent 0135924f7f
commit 79fcf7389f
3 changed files with 28 additions and 4 deletions
+4 -2
View File
@@ -11,7 +11,9 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
# Final image
FROM alpine:3.18
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache ca-certificates netcat-openbsd
COPY --from=builder /app/server /usr/local/bin/server
COPY scripts/wait-for-mqtt.sh /usr/local/bin/wait-for-mqtt.sh
RUN chmod +x /usr/local/bin/wait-for-mqtt.sh
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/server"]
ENTRYPOINT ["/usr/local/bin/wait-for-mqtt.sh"]