-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a732704
commit 9cc7f57
Showing
4 changed files
with
3,399 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,8 @@ | ||
FROM golang:1.14 | ||
|
||
ADD go.mod /go/src/github.com/minio/minio-operator/go.mod | ||
ADD go.sum /go/src/github.com/minio/minio-operator/go.sum | ||
WORKDIR /go/src/github.com/minio/minio-operator/ | ||
|
||
# Get Certificates | ||
RUN apt-get update -y && apt-get install -y ca-certificates | ||
|
||
# Get dependencies - will also be cached if we won't change mod/sum | ||
RUN go mod download | ||
|
||
ADD . /go/src/github.com/minio/minio-operator/ | ||
WORKDIR /go/src/github.com/minio/minio-operator/ | ||
|
||
ENV CGO_ENABLED=0 | ||
|
||
ARG ldflags | ||
ENV env_ldflags=$ldflags | ||
|
||
RUN go build -ldflags "$env_ldflags" -a -o minio-operator . | ||
|
||
FROM scratch | ||
|
||
LABEL maintainer="MinIO Inc <[email protected]>" | ||
|
||
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=0 /go/src/github.com/minio/minio-operator/minio-operator . | ||
COPY ca-certificates.crt /etc/ssl/certs/ | ||
COPY minio-operator /minio-operator | ||
|
||
CMD ["/minio-operator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.