diff --git a/Dockerfile b/Dockerfile index e32bf70..e062c93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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