fix label
All checks were successful
dockers/debian/pipeline/head This commit looks good

This commit is contained in:
chris 2022-01-29 18:33:11 +01:00
parent 702e60c0a0
commit 68d7edf278

View file

@ -2,6 +2,7 @@ FROM debian:stable as builder
RUN set -xe;\ RUN set -xe;\
apt-get update &&\ apt-get update &&\
apt-get install -y debootstrap &&\ apt-get install -y debootstrap &&\
mount &&\
debootstrap --include=apt,ca-certificates,curl --foreign --variant=minbase bullseye /dest &&\ debootstrap --include=apt,ca-certificates,curl --foreign --variant=minbase bullseye /dest &&\
sed -i 's/setup_proc//' /dest/debootstrap/suite-script sed -i 's/setup_proc//' /dest/debootstrap/suite-script
@ -14,6 +15,7 @@ RUN set -xe;\
FROM bootstrapped as toolbuilder FROM bootstrapped as toolbuilder
ENV GOSU_VERSION="1.14" ENV GOSU_VERSION="1.14"
ENV SUEXEC_VERSION="0.2"
ENV DUMB_INIT_VERSION="1.2.5" ENV DUMB_INIT_VERSION="1.2.5"
RUN set -xe;\ RUN set -xe;\
apt-get update &&\ apt-get update &&\
@ -31,6 +33,14 @@ RUN set -xe;\
cd dumb-init-${DUMB_INIT_VERSION} &&\ cd dumb-init-${DUMB_INIT_VERSION} &&\
make &&\ make &&\
cp dumb-init / cp dumb-init /
RUN set -xe;\
apt-get install -y libc6-dev make gcc &&\
cd / &&\
curl -LO https://github.com/ncopa/su-exec/archive/refs/tags/v0.2.tar.gz &&\
tar xvaf v0.2.tar.gz &&\
cd su-exec-* &&\
make &&\
cp su-exec /
FROM bootstrapped FROM bootstrapped
ARG DATE ARG DATE
@ -38,10 +48,11 @@ ENV GOSU_VERSION="1.12"
ENV DUMB_INIT_VERSION="1.2.3" ENV DUMB_INIT_VERSION="1.2.3"
COPY --from=toolbuilder /build/gosu /usr/local/sbin/gosu COPY --from=toolbuilder /build/gosu /usr/local/sbin/gosu
COPY --from=toolbuilder /dumb-init /usr/local/sbin/dumb-init COPY --from=toolbuilder /dumb-init /usr/local/sbin/dumb-init
COPY --from=toolbuilder /su-exec /usr/local/sbin/su-exec
COPY apt-install /bin/apt-install COPY apt-install /bin/apt-install
COPY checkupdates /bin/checkupdates COPY checkupdates /bin/checkupdates
CMD "bash" CMD "bash"
LABEL version.debian=bullseyen \ LABEL version.debian=bullseye \
version.gosu=$GOSU_VERSION \ version.gosu=$GOSU_VERSION \
version.dumb-init=$DUMB_INIT_VERSION \ version.dumb-init=$DUMB_INIT_VERSION \
build.date=$DATE build.date=$DATE