...

Text file src/github.com/google/certificate-transparency-go/internal/witness/cmd/feeder/Dockerfile

Documentation: github.com/google/certificate-transparency-go/internal/witness/cmd/feeder

     1FROM golang:1.22.1-bookworm@sha256:6699d2852712f090399ccd4e8dfd079b4d55376f3ab3aff5b2dc8b7b1c11e27e as builder
     2
     3ARG GOFLAGS=""
     4ENV GOFLAGS=$GOFLAGS
     5
     6# Move to working directory /build
     7WORKDIR /build
     8
     9# Copy and download dependency using go mod
    10COPY go.mod .
    11COPY go.sum .
    12RUN go mod download
    13
    14# Copy the code into the container
    15COPY . .
    16
    17# Build the application
    18RUN go build -o /build/bin/feeder ./internal/witness/cmd/feeder
    19
    20# Build release image
    21FROM alpine@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
    22
    23COPY --from=builder /build/bin/feeder /bin/feeder
    24ENTRYPOINT ["/bin/feeder"]

View as plain text