You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.
RUN apt-get update -y && apt-get install -y ca-certificates
ADD go.mod /go/src/github.com/minio/m3/go.mod
ADD go.sum /go/src/github.com/minio/m3/go.sum
WORKDIR /go/src/github.com/minio/m3/
# Get dependencies - will also be cached if we won't change mod/sum
RUN go mod download
ADD . /go/src/github.com/minio/m3/
WORKDIR /go/src/github.com/minio/m3/
ENV CGO_ENABLED=0
ARG build_version
ARG build_time
ENV env_build_version=$build_version
ENV env_build_time=$build_time
ENV CGO_ENABLED=0
RUN go build -ldflags "-w -s -X 'github.com/minio/m3/version.BuildTime=$env_build_time' -X 'github.com/minio/m3/version.BuildVersion=$env_build_version'" -a -o m3 ./cmd/m3