ARG BASE_IMAGE="alpine:3.17.3" FROM ${BASE_IMAGE} RUN apk update && \ apk add --no-cache openssh git curl RUN curl -fsSLO https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz \ && tar xzvf docker-17.04.0-ce.tgz \ && mv docker/docker /usr/local/bin \ && rm -r docker docker-17.04.0-ce.tgz