19 lines
444 B
Docker
19 lines
444 B
Docker
ARG BUILDX_VERSION=0.10.3
|
|
ARG DOCKER_VERSION=20.10.23-dind-alpine3.17
|
|
|
|
FROM alpine AS fetcher
|
|
|
|
RUN apk add curl
|
|
|
|
ARG BUILDX_VERSION
|
|
RUN curl -L \
|
|
--output /docker-buildx \
|
|
"https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-amd64"
|
|
|
|
RUN chmod a+x /docker-buildx
|
|
|
|
ARG DOCKER_VERSION
|
|
FROM docker:${DOCKER_VERSION}
|
|
|
|
COPY --from=fetcher /docker-buildx /usr/lib/docker/cli-plugins/docker-buildx
|