Go backend plus C (libsodium) and C++ (OpenSSL) simulated boards enroll through a Mosquitto 2.1 broker with Dynamic Security using X25519/HKDF/ Ed25519; a web view shows the run live. The Gitea workflow validates and builds the images, redeploys the stack on the server with the viewer on port 8099 and fails unless both boards pass all checks. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
12 lines
323 B
Docker
12 lines
323 B
Docker
FROM golang:1.24-alpine AS build
|
|
WORKDIR /src
|
|
# Dependencies are vendored (go mod vendor) so the build needs no module proxy access.
|
|
COPY go.mod go.sum ./
|
|
COPY vendor ./vendor
|
|
COPY main.go ./
|
|
RUN CGO_ENABLED=0 go build -mod=vendor -o /backend .
|
|
|
|
FROM alpine:3.21
|
|
COPY --from=build /backend /backend
|
|
ENTRYPOINT ["/backend"]
|