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