Files
docker-compose-docker/Dockerfile
T
CSRBot 3d9e11ccf2
Build / build-amd64 (pull_request) Failing after 2s
Build / build-arm64 (pull_request) Failing after 1s
Lint Markdown files / markdown-lint (pull_request) Failing after 1s
chore(deps): update dependency docker/compose to v5.4.0
2026-08-03 15:04:49 +00:00

32 lines
1.1 KiB
Docker

FROM docker.io/library/ubuntu:26.04 AS download
ARG DC_VERSION=v5.4.0
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
ARG DC_VERSION=v5.4.0
ARG BUILD_DATE
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/docker/compose/refs/tags/${DC_VERSION}/README.md" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.description="Define and run multi-container applications with Docker" \
org.opencontainers.image.version=${DC_VERSION}
COPY --from=download /tmp/docker-compose /usr/bin/docker-compose
ENTRYPOINT [ "/usr/bin/docker-compose" ]