Add private Docker UI relay for Nginx Proxy Manager
Test and deploy MQTT backend / test (push) Successful in 1m50s
Test and deploy MQTT backend / deploy (push) Successful in 25s

This commit is contained in:
2026-10-10 09:13:50 +03:30
parent 55f11c9956
commit 1539f067f9
6 changed files with 159 additions and 7 deletions
+3 -1
View File
@@ -4,7 +4,8 @@ COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/test-mqtt5 ./cmd/test-mqtt5 \
&& CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/device-sim ./cmd/device-sim
&& CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/device-sim ./cmd/device-sim \
&& CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/ui-proxy ./cmd/ui-proxy
FROM build AS test
RUN go test ./... && go vet ./...
@@ -14,5 +15,6 @@ RUN addgroup -S -g 10001 app && adduser -S -D -H -u 10001 -G app app \
&& apk add --no-cache ca-certificates
COPY --from=build /out/test-mqtt5 /test-mqtt5
COPY --from=build /out/device-sim /device-sim
COPY --from=build /out/ui-proxy /ui-proxy
USER app:app
ENTRYPOINT ["/test-mqtt5"]