Skip to content

Commit d2b9ee7

Browse files
committed
feat(go-dev): add pack
1 parent 61d7b5d commit d2b9ee7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rootfs/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ RUN export DEBIAN_FRONTEND=noninteractive \
5757
&& CGO_ENABLED=0 go build \
5858
-ldflags "-X main.AppVersionMetadata=$(date -u +%s)" \
5959
-a -installsuffix cgo -o /bin/envtpl ./cmd/envtpl/. \
60+
&& git clone --dept 1 https://github.com/buildpacks/pack -b v0.19.0 /tmp/pack \
61+
&& cd /tmp/pack \
62+
&& make \
63+
&& cp /tmp/pack/out/pack /usr/local/bin \
64+
&& chmod +x /usr/local/bin/pack \
65+
&& rm -rf /tmp/pack \
6066
&& curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin $GOLANGCI_LINT_VERSION \
6167
&& apt-get autoremove -y \
6268
&& apt-get clean -y \

0 commit comments

Comments
 (0)