2016-09-22 23:32:54 +00:00
|
|
|
FROM golang:1.7-alpine
|
2016-05-05 00:07:19 +00:00
|
|
|
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
|
|
|
|
COPY . /go/src/app
|
2016-11-05 01:25:30 +00:00
|
|
|
|
2016-08-31 20:32:41 +00:00
|
|
|
RUN \
|
|
|
|
apk add --no-cache git && \
|
|
|
|
go-wrapper download && \
|
2016-10-13 01:09:08 +00:00
|
|
|
go-wrapper install -ldflags "$(go run buildscripts/gen-ldflags.go)" && \
|
2016-08-31 20:32:41 +00:00
|
|
|
mkdir -p /export/docker && \
|
|
|
|
rm -rf /go/pkg /go/src && \
|
|
|
|
apk del git
|
2016-05-05 00:07:19 +00:00
|
|
|
|
|
|
|
EXPOSE 9000
|
2016-11-05 01:25:30 +00:00
|
|
|
ENTRYPOINT ["minio"]
|
2016-09-02 08:58:15 +00:00
|
|
|
VOLUME ["/export"]
|