You've already forked docker-compose-docker
d56f129569
Lint Markdown files / markdown-lint (push) Successful in 4s
Auto release tagged / tag_on_change (push) Failing after 10s
Release latest / push-manifest (push) Has been cancelled
Release latest / sync-to-hub-docker-io (push) Has been cancelled
Release latest / push-arm64 (push) Has been cancelled
Release latest / push-amd64 (push) Has been cancelled
32 lines
1.1 KiB
Docker
32 lines
1.1 KiB
Docker
FROM docker.io/library/ubuntu:26.04 AS download
|
|
|
|
ARG DC_VERSION=v5.1.4
|
|
|
|
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.1.4
|
|
ARG BUILD_DATE
|
|
|
|
LABEL io.artifacthub.package.readme-url="https://github.com/docker/compose" \
|
|
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" ]
|