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

FROM golang:1.16-alpine as builder
WORKDIR /app
ADD . ./
RUN ls -al && go build -o main main.go
FROM scratch as runtime
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /app
COPY --from=builder /app/main main
CMD [ "/app/main" ]