From 9dccbd64785d74ecb5b561f562900d8ad16b7e60 Mon Sep 17 00:00:00 2001 From: Rajiv Makhijani Date: Wed, 4 May 2016 17:07:19 -0700 Subject: [PATCH] New Dockerfile for building & running minio inside Docker (inc. autobuild support) (#1473) (#1485) --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..c45122371 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM golang:1.6 + +RUN mkdir -p /go/src/app +WORKDIR /go/src/app + +COPY . /go/src/app +RUN go-wrapper download +RUN go-wrapper install + +ENV ALLOW_CONTAINER_ROOT=1 +RUN mkdir -p /export/docker && cp /go/src/app/Docker.md /export/docker/ + +EXPOSE 9000 +ENTRYPOINT ["go-wrapper", "run", "server"] +CMD ["/export"]