mirror of
https://github.com/minio/minio.git
synced 2025-01-24 13:13:16 -05:00
Merge pull request #881 from technosophos/feature/docker-go151
Change Dockerfile to use smaller distro, non-root user, and Go 1.5.1
This commit is contained in:
commit
db293aedb7
11
Dockerfile
11
Dockerfile
@ -1,14 +1,17 @@
|
||||
|
||||
FROM ubuntu:14.04
|
||||
FROM ubuntu-debootstrap:14.04
|
||||
|
||||
MAINTAINER Minio Community
|
||||
|
||||
ENV GOLANG_TARBALL go1.5.linux-amd64.tar.gz
|
||||
ENV GOLANG_TARBALL go1.5.1.linux-amd64.tar.gz
|
||||
|
||||
ENV GOROOT /usr/local/go/
|
||||
ENV GOPATH /go-workspace
|
||||
ENV PATH ${GOROOT}/bin:${GOPATH}/bin/:$PATH
|
||||
|
||||
ENV MINIOHOME /home/minio
|
||||
ENV MINIOUSER minio
|
||||
RUN useradd -m -d $MINIOHOME $MINIOUSER
|
||||
|
||||
RUN apt-get update -y && apt-get install -y -q \
|
||||
curl \
|
||||
git \
|
||||
@ -29,6 +32,8 @@ RUN apt-get remove -y build-essential curl git && \
|
||||
apt-get -y autoremove && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
USER minio
|
||||
|
||||
EXPOSE 9000 9001
|
||||
|
||||
CMD ["sh", "-c", "${GOPATH}/bin/minio server"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user