-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile, Dockerfile.dev, and 3 more files...
- Loading branch information
rzrbld
committed
Feb 24, 2020
1 parent
28f1eb5
commit abd072f
Showing
5 changed files
with
143 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM golang:1.13-alpine | ||
|
||
LABEL maintainer="rzrbld <[email protected]>" | ||
|
||
ENV GOPATH /go | ||
ENV CGO_ENABLED 0 | ||
ENV GO111MODULE on | ||
ENV GOPROXY https://proxy.golang.org | ||
|
||
RUN \ | ||
apk add --no-cache git && \ | ||
git clone https://github.com/minio/minio && cd minio/ && git checkout d4dcf1d7225a38ecf94abe7cbe7c69a93dc7c0b0 && cd pkg/madmin/examples/ | ||
|
||
COPY src/main.go minio/pkg/madmin/examples/ | ||
|
||
RUN cd minio/pkg/madmin/examples && go build main.go && cp main /go/bin/adminio | ||
|
||
FROM alpine:3.9 | ||
|
||
EXPOSE 8080 | ||
|
||
COPY --from=0 /go/bin/adminio /usr/bin/adminio | ||
|
||
RUN \ | ||
apk add --no-cache ca-certificates 'curl>7.61.0' 'su-exec>=0.2' && \ | ||
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf | ||
|
||
CMD ["adminio"] |
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