From cd87d88882f6b10d259f5618e98e5110eea2ba88 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Thu, 8 Feb 2018 13:59:27 -0800 Subject: [PATCH] Add `docker` CLI to the `docker/compose` image Signed-off-by: Joffrey F --- Dockerfile.run | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile.run b/Dockerfile.run index a09e57a09..6c532fc14 100644 --- a/Dockerfile.run +++ b/Dockerfile.run @@ -29,6 +29,16 @@ RUN mkdir -p /lib /lib64 /usr/glibc-compat/lib/locale /etc && \ ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 && \ ln -s /usr/glibc-compat/etc/ld.so.cache /etc/ld.so.cache +RUN apk add --no-cache curl && \ + curl -fsSL -o dockerbins.tgz "https://download.docker.com/linux/static/stable/x86_64/docker-17.12.0-ce.tgz" && \ + SHA256=692e1c72937f6214b1038def84463018d8e320c8eaf8530546c84c2f8f9c767d; \ + echo "${SHA256} dockerbins.tgz" | sha256sum -c - && \ + tar xvf dockerbins.tgz docker/docker --strip-components 1 && \ + mv docker /usr/local/bin/docker && \ + chmod +x /usr/local/bin/docker && \ + rm dockerbins.tgz && \ + apk del curl + COPY dist/docker-compose-Linux-x86_64 /usr/local/bin/docker-compose ENTRYPOINT ["docker-compose"]