You've already forked docker-compose-docker
All checks were successful
Build / build-amd64 (pull_request) Successful in 37s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Build / build-arm64 (pull_request) Successful in 1m22s
Auto release / tag_on_change (push) Successful in 13s
Build / build-amd64 (push) Successful in 34s
Lint Markdown files / markdown-lint (push) Successful in 4s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 4s
Build / build-arm64 (push) Successful in 1m19s
24 lines
795 B
Docker
24 lines
795 B
Docker
FROM docker.io/library/ubuntu:24.04 AS download
|
|
|
|
ARG DC_VERSION=v5.0.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
|
|
|
|
COPY --from=download /tmp/docker-compose /usr/bin/docker-compose
|
|
ENTRYPOINT [ "/usr/bin/docker-compose" ]
|