diff --git a/python-base/Dockerfile b/python-base/Dockerfile index 74828b3..e3873b9 100644 --- a/python-base/Dockerfile +++ b/python-base/Dockerfile @@ -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", "--"] diff --git a/python-builder/Dockerfile b/python-builder/Dockerfile index 27fa119..c0e8ec9 100644 --- a/python-builder/Dockerfile +++ b/python-builder/Dockerfile @@ -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 \