docker-with-buildx/Dockerfile
Struchkov Mark ea81142985
All checks were successful
continuous-integration/drone/tag Build is passing
BUILDX_VERSION=0.19.2 and DOCKER_VERSION=27.4.0-dind-alpine3.21
2024-12-10 09:11:31 +03:00

20 lines
578 B
Docker

# https://github.com/docker/buildx/releases/
ARG BUILDX_VERSION=0.19.2
# https://hub.docker.com/r/library/docker
ARG DOCKER_VERSION=27.4.0-dind-alpine3.21
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