2023-03-28 20:59:42 +02:00
|
|
|
FROM alpine:3.17
|
|
|
|
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
# https://download.docker.com/linux/static/stable/
|
2023-04-27 13:46:47 +02:00
|
|
|
ARG DOCKER_VERSION=23.0.5
|
2023-03-28 20:59:42 +02:00
|
|
|
# https://github.com/docker/compose/releases
|
|
|
|
# Reverted to 2.6.1 because of this https://github.com/docker/compose/issues/9704. 2.9.0 still has a bug.
|
2023-04-28 14:05:33 +02:00
|
|
|
# Using the latest now
|
2023-04-27 13:46:47 +02:00
|
|
|
ARG DOCKER_COMPOSE_VERSION=2.17.3
|
2023-03-28 20:59:42 +02:00
|
|
|
# https://github.com/buildpacks/pack/releases
|
|
|
|
ARG PACK_VERSION=0.27.0
|
|
|
|
# https://github.com/railwayapp/nixpacks/releases
|
2023-04-27 13:46:47 +02:00
|
|
|
ARG NIXPACKS_VERSION=1.6.1
|
2023-03-28 20:59:42 +02:00
|
|
|
|
|
|
|
USER root
|
2023-03-28 22:13:08 +02:00
|
|
|
WORKDIR /artifacts
|
2023-03-28 20:59:42 +02:00
|
|
|
RUN apk add --no-cache bash curl git git-lfs openssh-client tar tini
|
|
|
|
RUN mkdir -p ~/.docker/cli-plugins
|
|
|
|
RUN curl -SL https://cdn.coollabs.io/bin/$TARGETPLATFORM/docker-$DOCKER_VERSION -o /usr/bin/docker
|
|
|
|
RUN curl -SL https://cdn.coollabs.io/bin/$TARGETPLATFORM/docker-compose-linux-$DOCKER_COMPOSE_VERSION -o ~/.docker/cli-plugins/docker-compose
|
2023-04-27 13:46:47 +02:00
|
|
|
RUN curl -SL https://cdn.coollabs.io/bin/$TARGETPLATFORM/pack-$PACK_VERSION -o /usr/local/bin/pack
|
2023-03-28 20:59:42 +02:00
|
|
|
RUN curl -sSL https://nixpacks.com/install.sh | bash
|
|
|
|
RUN chmod +x ~/.docker/cli-plugins/docker-compose /usr/bin/docker /usr/local/bin/pack
|
|
|
|
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
2023-04-27 12:25:32 +02:00
|
|
|
CMD ["sh", "-c", "while true; do sleep 3600; done"]
|
2023-03-28 20:59:42 +02:00
|
|
|
|