2023-03-28 18:59:42 +00:00
|
|
|
FROM alpine:3.17
|
|
|
|
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
# https://download.docker.com/linux/static/stable/
|
2023-04-27 11:46:47 +00:00
|
|
|
ARG DOCKER_VERSION=23.0.5
|
2023-03-28 18:59:42 +00:00
|
|
|
# https://github.com/docker/compose/releases
|
2023-04-27 11:46:47 +00:00
|
|
|
ARG DOCKER_COMPOSE_VERSION=2.17.3
|
2023-05-02 13:20:45 +00:00
|
|
|
# https://github.com/docker/buildx/releases
|
|
|
|
ARG DOCKER_BUILDX_VERSION=0.10.4
|
2023-03-28 18:59:42 +00:00
|
|
|
# https://github.com/buildpacks/pack/releases
|
2023-05-02 13:20:45 +00:00
|
|
|
ARG PACK_VERSION=0.29.0
|
2023-03-28 18:59:42 +00:00
|
|
|
# https://github.com/railwayapp/nixpacks/releases
|
2023-04-27 11:46:47 +00:00
|
|
|
ARG NIXPACKS_VERSION=1.6.1
|
2023-03-28 18:59:42 +00:00
|
|
|
|
|
|
|
USER root
|
2023-03-28 20:13:08 +00:00
|
|
|
WORKDIR /artifacts
|
2023-03-28 18:59:42 +00:00
|
|
|
RUN apk add --no-cache bash curl git git-lfs openssh-client tar tini
|
|
|
|
RUN mkdir -p ~/.docker/cli-plugins
|
2023-05-02 13:20:45 +00:00
|
|
|
RUN if [[ ${TARGETPLATFORM} == 'linux/amd64' ]]; then \
|
2023-05-03 06:31:50 +00:00
|
|
|
curl -sSL https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 -o ~/.docker/cli-plugins/docker-buildx && \
|
|
|
|
curl -sSL https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose && \
|
2023-05-02 15:53:06 +00:00
|
|
|
(curl -sSL https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | tar -C /usr/bin/ --no-same-owner -xzv --strip-components=1 docker/docker) && \
|
|
|
|
(curl -sSL https://github.com/buildpacks/pack/releases/download/v${PACK_VERSION}/pack-v${PACK_VERSION}-linux.tgz | tar -C /usr/local/bin/ --no-same-owner -xzv pack) && \
|
2023-05-02 13:20:45 +00:00
|
|
|
curl -sSL https://nixpacks.com/install.sh | bash && \
|
2023-05-02 15:53:06 +00:00
|
|
|
chmod +x ~/.docker/cli-plugins/docker-compose /usr/bin/docker /usr/local/bin/pack /root/.docker/cli-plugins/docker-buildx \
|
|
|
|
;fi
|
|
|
|
RUN
|
2023-03-28 18:59:42 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
2023-05-03 06:31:50 +00:00
|
|
|
CMD ["sh", "-c", "while true; do sleep 3600 && exit 0; done"]
|
2023-03-28 18:59:42 +00:00
|
|
|
|