You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
310 B

  1. FROM golang:1.24.0 AS builder
  2. WORKDIR /app
  3. COPY go.mod go.sum ./
  4. RUN go mod download
  5. COPY . .
  6. RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bridge ./cmd/bridge
  7. FROM alpine:latest
  8. RUN apk add --no-cache ca-certificates
  9. WORKDIR /app
  10. COPY --from=builder /app/bridge .
  11. ENTRYPOINT ["./bridge"]