Add fake-init
Change-Id: Ie720ad5483f75bf0b99eb90830e1bc6a5fb53ebc
This commit is contained in:
@@ -15,11 +15,16 @@
|
|||||||
|
|
||||||
FROM python:3.7-slim
|
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 /output /output
|
||||||
ONBUILD COPY --from=builder /etc/apt /etc/apt
|
ONBUILD COPY --from=builder /etc/apt /etc/apt
|
||||||
ONBUILD RUN apt-get update && \
|
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 && \
|
pip install --no-index /output/wheels/*.whl && \
|
||||||
apt-get clean all
|
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 test -f /build/setup-repos.sh && /build/setup-repos.sh || true
|
||||||
ONBUILD RUN apt-get update && \
|
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" && \
|
ONBUILD RUN test -f "/build/build-requirements.txt" && \
|
||||||
pip install --constraint=/build/constraints.txt \
|
pip install --constraint=/build/constraints.txt \
|
||||||
|
Reference in New Issue
Block a user