alpine-minikube/Dockerfile
2017-10-12 13:12:34 -07:00

25 lines
1.1 KiB
Docker

FROM alpine:3.6
MAINTAINER William Hindes <bhindes@hotmail.com>
ENV GOPATH="/usr/bin"
ENV GOROOT="/usr/lib/go"
RUN apk --update --no-cache add docker sudo bash && \
apk upgrade --update && \
apk add --no-cache --virtual=.build-dependencies ca-certificates python2 wget go make \
autoconf findutils make pkgconf libtool g++ automake linux-headers git && \
wget "https://storage.googleapis.com/kubernetes-release/release/v1.8.0/bin/linux/amd64/kubectl" -O "/usr/local/bin/kubectl" && \
mkdir -p /usr/bin/src/k8s.io && cd /usr/bin/src/k8s.io && chmod +x /usr/local/bin/kubectl && \
git clone https://github.com/kubernetes/minikube && cd minikube && \
make && mv ./out/minikube /usr/local/bin/minikube && rm -rf /usr/bin/src/k8s.io && rm -rf /tmp/* && \
minikube start --vm-driver none --kubernetes-version v1.7.5 -v 7 --memory 1024 --disk-size 4g && \
apk del .build-dependencies
ADD ./dockerd-entrypoint.sh /usr/local/bin/
ADD ./dockerd-cmd.sh /usr/local/bin/
ADD ./setup-compose /usr/local/bin/
EXPOSE 2375 30000
ENTRYPOINT ["dockerd-entrypoint.sh"]
CMD ["dockerd-cmd.sh"]