fix gosu
dockers/debian/pipeline/head This commit looks good Details

This commit is contained in:
chris 2021-10-29 00:18:51 +02:00
parent 3feddb4316
commit 702e60c0a0
1 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@ RUN set -xe;\
rm -rf /var/lib/apt/lists/*
FROM bootstrapped as toolbuilder
ENV GOSU_VERSION="1.12"
ENV GOSU_VERSION="1.14"
ENV DUMB_INIT_VERSION="1.2.5"
RUN set -xe;\
apt-get update &&\
@ -21,7 +21,8 @@ RUN set -xe;\
git clone https://github.com/tianon/gosu.git /build &&\
cd /build &&\
git checkout $GOSU_VERSION &&\
go get || echo 0; go build
go mod download &&\
go build
RUN set -xe;\
apt-get install -y build-essential &&\
cd / &&\
@ -35,7 +36,7 @@ FROM bootstrapped
ARG DATE
ENV GOSU_VERSION="1.12"
ENV DUMB_INIT_VERSION="1.2.3"
COPY --from=toolbuilder /build/build /usr/local/sbin/gosu
COPY --from=toolbuilder /build/gosu /usr/local/sbin/gosu
COPY --from=toolbuilder /dumb-init /usr/local/sbin/dumb-init
COPY apt-install /bin/apt-install
COPY checkupdates /bin/checkupdates