mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
18 lines
388 B
Docker
18 lines
388 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 && \
|
|
cp /go/src/app/docs/Docker.md /export/docker/ && \
|
|
rm -rf /go/pkg /go/src && \
|
|
apk del git
|
|
|
|
EXPOSE 9000
|
|
ENTRYPOINT ["go-wrapper", "run"]
|
|
VOLUME ["/export"]
|