Add fake-init

Change-Id: Ie720ad5483f75bf0b99eb90830e1bc6a5fb53ebc
This commit is contained in:
Mohammed Naser 2020-08-19 12:57:48 -04:00
parent d6325dbc8f
commit d27a965518
2 changed files with 8 additions and 3 deletions

View File

@ -15,11 +15,16 @@
FROM python:3.7-slim
RUN pip --no-cache-dir install bindep
RUN pip --no-cache-dir install bindep && \
apt-get update && \
apt-get install -y dumb-init && \
apt-get clean all
ONBUILD COPY --from=builder /output /output
ONBUILD COPY --from=builder /etc/apt /etc/apt
ONBUILD RUN apt-get update && \
apt-get install -y $(bindep -b -f /output/bindep.txt) && \
apt-get install --no-install-recommends -y $(bindep -b -f /output/bindep.txt) && \
pip install --no-index /output/wheels/*.whl && \
apt-get clean all
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

View File

@ -24,7 +24,7 @@ ONBUILD ADD bindep.txt /output/bindep.txt
ONBUILD RUN test -f /build/setup-repos.sh && /build/setup-repos.sh || true
ONBUILD RUN apt-get update && \
apt-get install -y $(bindep -b -f /build/bindep.txt compile)
apt-get install --no-install-recommends -y $(bindep -b -f /build/bindep.txt compile)
ONBUILD RUN test -f "/build/build-requirements.txt" && \
pip install --constraint=/build/constraints.txt \