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

This commit is contained in:
kristjank committed 2025-12-28 15:17:28 +01:00
1 parent 0135924f7f
commit 79fcf7389f
3 files changed
+28 -4

No files matched your search

+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"]