From e4b623927717dd2e719667529d0bdf4c521743b9 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 25 Feb 2015 20:54:00 +0100 Subject: [PATCH] Add Dockerfile to build a docker image with embarked minio server --- Dockerfile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..c48722434 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,37 @@ + +FROM ubuntu:14.04 + +MAINTAINER Minio Community + +ENV GOLANG_TARBALL go1.4.2.linux-amd64.tar.gz + +ENV GOROOT /usr/local/go/ +ENV GOPATH /go-workspace +ENV PATH ${GOROOT}/bin:${GOPATH}/bin/:$PATH + +RUN apt-get update -y && apt-get install -y -q \ + curl \ + git \ + build-essential \ + ca-certificates \ + yasm \ + python-pip + +RUN curl -O -s https://storage.googleapis.com/golang/${GOLANG_TARBALL} && \ + tar -xzf ${GOLANG_TARBALL} -C ${GOROOT%*go*} && \ + rm ${GOLANG_TARBALL} && \ + pip install mkdocs + +ADD . ${GOPATH}/src/github.com/minio-io/minio + +RUN cd ${GOPATH}/src/github.com/minio-io/minio && \ + make + +RUN apt-get remove -y build-essential curl git python-pip && \ + apt-get -y autoremove && \ + rm -rf /var/lib/apt/lists/* + +EXPOSE 9000 9001 + +CMD ["sh", "-c", "${GOPATH}/bin/minio"] +