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
265 B

3 years ago
  1. FROM golang:1.16-alpine as builder
  2. WORKDIR /app
  3. ADD . ./
  4. RUN ls -al && go build -o main 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" ]