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.

15 lines
259 B

3 years ago
3 years ago
3 years ago
  1. FROM golang:1.16-alpine as builder
  2. WORKDIR /app
  3. ADD . ./
  4. RUN go build -o main cmd/main.go
  5. FROM scratch as runtime
  6. COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
  7. WORKDIR /app
  8. COPY --from=builder /app/main main
  9. CMD [ "/app/main" ]