Something went wrong. Try again.
An experimental pub/sub client and server project.
Something went wrong. Try again.
message-broker dockerfile.server
332 B · 20 lines
at main
1234567891011121314151617181920FROM golang:latest as builder
WORKDIR /app
COPY go.mod go.sum ./COPY cmd/server/ ./RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o message-broker-server .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/COPY --from=builder /app/message-broker-server .
CMD ["./message-broker-server"]