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.
 
 

13 lines
351 B

FROM golang as builder
WORKDIR /build
ADD . .
RUN go get ./... && \
CGO_ENABLED=0 GOOS=linux go build -o microbe
FROM alpine as certs
RUN apk --no-cache add ca-certificates
FROM scratch
COPY --from=builder /build/microbe /microbe
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT [ "/microbe" ]