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