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

FROM golang:latest AS builder
ARG version="dev"
WORKDIR /go/src/
COPY . .
RUN go get -d
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.buildVersion=${version}" -o azure-blob-storage-exporter
# Final image.
FROM alpine:3.8
LABEL maintainer="Benjamin Stein <>"
RUN apk add --no-cache ca-certificates
COPY --from=builder /go/src/ .
ENTRYPOINT ["/azure-blob-storage-exporter"]
CMD ""