mirror of
https://github.com/minio/minio
synced 2024-11-05 17:34:01 +00:00
17 lines
325 B
Docker
17 lines
325 B
Docker
FROM golang:1.7-alpine
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
COPY . /go/src/app
|
|
|
|
RUN \
|
|
apk add --no-cache git && \
|
|
go-wrapper download && \
|
|
go-wrapper install -ldflags "$(go run buildscripts/gen-ldflags.go)" && \
|
|
mkdir -p /export/docker && \
|
|
rm -rf /go/pkg /go/src && \
|
|
apk del git
|
|
|
|
EXPOSE 9000
|
|
ENTRYPOINT ["minio"]
|
|
VOLUME ["/export"]
|