From 8992e9f2dd6f0a1cc1d278bbeef93b418b7cb1d4 Mon Sep 17 00:00:00 2001 From: Peter Baumgartner Date: Mon, 6 May 2024 11:06:27 -0600 Subject: [PATCH] Revert to pack that supports legacy Heroku buildpack --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 61b9912..8ca7ebd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM golang:1.22-alpine as builder RUN apk add --no-cache curl +# last pack version that supports heroku/buildpacks:20 builder +ENV PACK_VER=0.31.0 RUN set -ex && \ cd /tmp && \ - curl -sLO https://github.com/buildpacks/pack/releases/download/v0.33.2/pack-v0.33.2-linux.tgz && \ - tar xvzf pack-v0.33.2-linux.tgz + curl -sLO "https://github.com/buildpacks/pack/releases/download/v$PACK_VER/pack-v$PACK_VER-linux.tgz" && \ + tar xvzf "pack-v$PACK_VER-linux.tgz" WORKDIR /go/src/github.com/apppackio/codebuild-image/builder COPY ./builder .