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.
 
 

10 lines
245 B

  1. FROM golang:1.19-alpine AS build
  2. WORKDIR /app
  3. COPY . ./
  4. RUN go mod download
  5. RUN CGO_ENABLED=0 go build -installsuffix 'static' -o /backfeed .
  6. FROM gcr.io/distroless/static
  7. WORKDIR /
  8. COPY --from=build /backfeed /backfeed
  9. ENTRYPOINT ["/backfeed"]