Merge "Stop using jemalloc in python base image"

This commit is contained in:
Zuul 2020-05-05 18:50:04 +00:00 committed by Gerrit Code Review
commit b2df0af08c

View File

@ -19,7 +19,7 @@ FROM docker.io/library/python:${PYTHON_VERSION}-slim
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y dumb-init libjemalloc2 \ && apt-get install -y dumb-init \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
@ -30,5 +30,4 @@ RUN pip install -U pip
# Undo debian changes to openssl.cnf that are too aggressive # Undo debian changes to openssl.cnf that are too aggressive
COPY openssl.cnf /etc/ssl/openssl.cnf COPY openssl.cnf /etc/ssl/openssl.cnf
ENV LD_PRELOAD /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
ENTRYPOINT ["/usr/bin/dumb-init", "--"] ENTRYPOINT ["/usr/bin/dumb-init", "--"]