docker-with-buildx/Dockerfile
Struchkov Mark c8a4166304
Some checks reported errors
continuous-integration/drone/tag Build encountered an error
BUILDX_VERSION=0.12.0
2023-12-02 20:42:24 +03:00

19 lines
492 B
Docker

ARG BUILDX_VERSION=0.12.0
ARG DOCKER_VERSION=24.0.7-dind-alpine3.18
FROM hub.docker.struchkov.dev/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 hub.docker.struchkov.dev/docker:${DOCKER_VERSION}
COPY --from=fetcher /docker-buildx /usr/lib/docker/cli-plugins/docker-buildx