2024-09-06 01:06:59 +00:00
|
|
|
FROM docker.io/library/golang:1.23.1-alpine3.20 AS build
|
2024-08-30 12:48:48 +00:00
|
|
|
|
|
|
|
ARG DC_VERSION=main
|
|
|
|
|
|
|
|
RUN set -ex && \
|
|
|
|
apk update && \
|
|
|
|
apk upgrade && \
|
|
|
|
apk add git make
|
|
|
|
|
|
|
|
RUN git clone https://github.com/docker/compose.git --branch ${DC_VERSION} docker-compose && \
|
|
|
|
cd docker-compose && \
|
|
|
|
make DESTDIR=/cache
|
|
|
|
|
|
|
|
FROM docker.io/library/alpine:3.20
|
|
|
|
|
|
|
|
COPY --from=build /cache/docker-compose /usr/bin/docker-compose
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/docker-compose" ]
|