diff --git a/Dockerfile b/Dockerfile index bfe157eb..97bdc4b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN mkdir /tmp/python && cd /tmp/python && \ wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \ tar -xzf Python-*.tgz && rm -f Python-*.tgz && \ cd Python-* && \ - ./configure --enable-shared && \ + ./configure --enable-shared --enable-optimizations --with-lto && \ make altinstall && \ echo /usr/local/lib > /etc/ld.so.conf.d/local.conf && ldconfig && \ cd / && rm -rf /tmp/pyton