github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/binary_transparency/firmware/cmd/ftmapserver/Dockerfile (about) 1 FROM golang:1.22.3-bullseye@sha256:78b171fe51f25b8c3197710f281dacae94759a254e9a486576005f9dadba9e7d AS builder 2 LABEL stage=builder 3 4 ARG GOFLAGS="" 5 ENV GOFLAGS=$GOFLAGS 6 7 # Move to working directory /build 8 WORKDIR /build 9 10 # Copy and download dependency using go mod 11 COPY go.mod . 12 COPY go.sum . 13 RUN go mod download 14 15 # Copy the code into the container 16 COPY . . 17 18 # Build the application 19 RUN go build ./binary_transparency/firmware/cmd/ftmapserver 20 21 # Build release image 22 FROM golang:1.22.3-bullseye@sha256:78b171fe51f25b8c3197710f281dacae94759a254e9a486576005f9dadba9e7d 23 24 COPY --from=builder /build/ftmapserver /bin/ftmapserver 25 ENTRYPOINT ["/bin/ftmapserver"]