Add fake-init
Change-Id: Ie720ad5483f75bf0b99eb90830e1bc6a5fb53ebc
This commit is contained in:
parent
d6325dbc8f
commit
d27a965518
@ -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", "--"]
|
||||
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user