2
0

Dockerfile 747 B

1234567891011121314151617181920
  1. FROM ubuntu:latest
  2. COPY get-porter-cli.sh /scratch/
  3. RUN apt-get update && apt-get install -y curl unzip git
  4. ARG DOCKER_VERSION=24.0.6
  5. ARG DOCKER_BUILDX_VERSION=0.11.2
  6. RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz && \
  7. tar --strip-components=1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/local/bin && \
  8. mkdir -p /usr/local/libexec/docker/cli-plugins && \
  9. curl -fsSLo /usr/local/libexec/docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 && \
  10. chmod +x /usr/local/libexec/docker/cli-plugins/docker-buildx
  11. ARG VERSION
  12. RUN /scratch/get-porter-cli.sh
  13. ENTRYPOINT ["porter"]