2024-07-13 10:29:10 +03:00
|
|
|
# https://github.com/docker/buildx/releases/
|
2024-12-10 09:07:17 +03:00
|
|
|
ARG BUILDX_VERSION=0.19.2
|
2024-08-27 18:42:56 +03:00
|
|
|
# https://hub.docker.com/r/library/docker
|
2024-12-10 09:07:17 +03:00
|
|
|
ARG DOCKER_VERSION=27.4.0-dind-alpine3.21
|
2022-01-26 13:08:39 +03:00
|
|
|
|
2023-12-02 20:42:24 +03:00
|
|
|
FROM hub.docker.struchkov.dev/alpine AS fetcher
|
2022-01-26 13:08:39 +03:00
|
|
|
|
|
|
|
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
|
2023-12-02 20:42:24 +03:00
|
|
|
FROM hub.docker.struchkov.dev/docker:${DOCKER_VERSION}
|
2022-01-26 13:08:39 +03:00
|
|
|
|
2024-07-13 10:29:10 +03:00
|
|
|
COPY --from=fetcher /docker-buildx /usr/lib/docker/cli-plugins/docker-buildx
|