Compile dumb-init.

master
Icedream 2016-01-28 00:15:58 +01:00
parent 1b95e12c83
commit d9943e4ddb
1 changed files with 8 additions and 3 deletions

View File

@ -1,11 +1,16 @@
FROM icedream/debian-i386:jessie FROM icedream/debian-i386:jessie
RUN apt-get update &&\ RUN apt-get update &&\
apt-get install -y wget wine32 &&\ apt-get install -y wget tar wine32 build-essential &&\
wget https://github.com/Yelp/dumb-init/releases/download/v1.0.0/dumb-init_1.0.0_amd64.deb -O/tmp/dumb-init.deb &&\ wget https://github.com/Yelp/dumb-init/archive/master.tar.gz -O- |\
dpkg -i /tmp/dumb-init.deb &&\ tar xz -C /tmp &&\
cd /tmp/dumb-init* &&\
make &&\
make install &&\
apt-get autoremove --purge -y tar wget build-essential &&\
apt-get clean &&\ apt-get clean &&\
adduser --disabled-password --uid 9999 --home /app --gecos "" app &&\ adduser --disabled-password --uid 9999 --home /app --gecos "" app &&\
cd / &&\
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
USER app USER app