From a111e6c6d18d646a69b6fb88bf2702702bff85ab Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Thu, 7 Sep 2023 19:27:10 +0000 Subject: [PATCH] Leaner deposit build --- staking-deposit-cli/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/staking-deposit-cli/Dockerfile b/staking-deposit-cli/Dockerfile index b8840407..cd0a02ec 100644 --- a/staking-deposit-cli/Dockerfile +++ b/staking-deposit-cli/Dockerfile @@ -1,15 +1,19 @@ -from python:3.10-bookworm as builder +from python:3.10-alpine as builder +#from python:3.11-alpine as builder ARG BUILD_TARGET ARG SRC_REPO RUN mkdir -p /src +RUN apk add --update bash git + WORKDIR /src RUN bash -c "git clone ${SRC_REPO} staking-deposit-cli && cd staking-deposit-cli && git config advice.detachedHead false && git fetch --all --tags \ && if [[ ${BUILD_TARGET} =~ pr-.+ ]]; then git fetch origin pull/$(echo ${BUILD_TARGET} | cut -d '-' -f 2)/head:deposit-pr; git checkout deposit-pr; else git checkout ${BUILD_TARGET}; fi" FROM python:3.10-alpine +#FROM python:3.11-alpine ARG USER=depcli ARG UID=1000