Files
docker-compose-docker/Dockerfile
CSRBot 9f371a3610
Some checks failed
Build / build-amd64 (pull_request) Successful in 1m13s
Lint Markdown files / markdown-lint (pull_request) Successful in 6s
Build / build-arm64 (pull_request) Successful in 1m53s
Auto release / tag_on_change (push) Has been cancelled
Build / build-arm64 (push) Successful in 1m55s
Lint Markdown files / markdown-lint (push) Successful in 11s
Build / build-amd64 (push) Successful in 1m12s
chore(deps): update docker.io/library/ubuntu docker tag to v26
2026-05-03 18:05:03 +00:00

27 lines
975 B
Docker

FROM docker.io/library/ubuntu:26.04 AS download
ARG DC_VERSION=v5.1.3
RUN NAME=docker-compose-$(uname | tr [:upper:] [:lower:])-$(uname -m); \
apt update --yes && \
apt install --yes curl && \
curl \
--fail \
--output "/tmp/${NAME}" \
--location "https://github.com/docker/compose/releases/download/${DC_VERSION}/${NAME}" && \
curl \
--fail \
--output /tmp/checksums.txt \
--location "https://github.com/docker/compose/releases/download/${DC_VERSION}/checksums.txt" && \
(cd /tmp && sha256sum --ignore-missing --check checksums.txt) && \
ln -s "${NAME}" /tmp/docker-compose && \
chmod +x /tmp/docker-compose
FROM scratch
LABEL org.opencontainers.image.description="Define and run multi-container applications with Docker" \
io.artifacthub.package.readme-url="https://github.com/docker/compose"
COPY --from=download /tmp/docker-compose /usr/bin/docker-compose
ENTRYPOINT [ "/usr/bin/docker-compose" ]