FROM ubuntu:16.04 ARG docker_ver="17.09.0-ce" RUN apt-get -y update \ && apt-get install -y curl make xz-utils git python jq \ && curl -Lo /tmp/docker-${docker_ver}.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${docker_ver}.tgz \ && tar -xz -C /tmp -f /tmp/docker-${docker_ver}.tgz \ && mv /tmp/docker/* /usr/bin \ && apt-get -y auto-remove \ && apt-get -y clean \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /usr/share/doc/ \ && rm -rf /usr/share/man/ \ && rm -rf /usr/share/locale/