2015-02-25 14:54:00 -05:00
|
|
|
|
|
|
|
FROM ubuntu:14.04
|
|
|
|
|
|
|
|
MAINTAINER Minio Community
|
|
|
|
|
|
|
|
ENV GOLANG_TARBALL go1.4.2.linux-amd64.tar.gz
|
|
|
|
|
|
|
|
ENV GOROOT /usr/local/go/
|
2015-04-11 00:18:35 -04:00
|
|
|
ENV GOPATH /go-workspace
|
2015-02-25 14:54:00 -05:00
|
|
|
ENV PATH ${GOROOT}/bin:${GOPATH}/bin/:$PATH
|
|
|
|
|
|
|
|
RUN apt-get update -y && apt-get install -y -q \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
2015-04-11 00:18:35 -04:00
|
|
|
yasm
|
2015-02-25 14:54:00 -05:00
|
|
|
|
|
|
|
RUN curl -O -s https://storage.googleapis.com/golang/${GOLANG_TARBALL} && \
|
|
|
|
tar -xzf ${GOLANG_TARBALL} -C ${GOROOT%*go*} && \
|
2015-04-11 00:18:35 -04:00
|
|
|
rm ${GOLANG_TARBALL}
|
2015-02-25 14:54:00 -05:00
|
|
|
|
|
|
|
ADD . ${GOPATH}/src/github.com/minio-io/minio
|
|
|
|
|
|
|
|
RUN cd ${GOPATH}/src/github.com/minio-io/minio && \
|
|
|
|
make
|
|
|
|
|
2015-04-11 00:18:35 -04:00
|
|
|
RUN apt-get remove -y build-essential curl git && \
|
2015-02-25 14:54:00 -05:00
|
|
|
apt-get -y autoremove && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
EXPOSE 9000 9001
|
|
|
|
|
2015-05-01 18:23:33 -04:00
|
|
|
CMD ["sh", "-c", "${GOPATH}/bin/minio mode memory 2G"]
|