docker-with-buildx/Dockerfile

19 lines
443 B
Docker
Raw Normal View History

2022-12-04 12:07:19 +03:00
ARG BUILDX_VERSION=0.9.1
2022-12-18 01:15:20 +03:00
ARG DOCKER_VERSION=20.10.22-dind-alpine3.17
2022-01-26 13:08:39 +03:00
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