|
| 1 | +# Copyright 2020-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 | +# |
| 3 | +# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. |
| 4 | +# A copy of the License is located at |
| 5 | +# |
| 6 | +# http://aws.amazon.com/asl/ |
| 7 | +# |
| 8 | +# or in the "license" file accompanying this file. |
| 9 | +# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. |
| 10 | +# See the License for the specific language governing permissions and limitations under the License. |
| 11 | + |
1 | 12 | FROM amazonlinux:2 AS core
|
2 | 13 |
|
3 | 14 | ENV EPEL_REPO="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
|
@@ -328,7 +339,7 @@ ENV PYTHON_37_VERSION="3.7.6"
|
328 | 339 | ENV PYTHON_PIP_VERSION=19.3.1
|
329 | 340 |
|
330 | 341 | COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION
|
331 |
| -RUN pyenv install $PYTHON_37_VERSION; rm -rf /tmp/* |
| 342 | +RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION; rm -rf /tmp/* |
332 | 343 | RUN pyenv global $PYTHON_37_VERSION
|
333 | 344 | RUN set -ex \
|
334 | 345 | && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
|
@@ -397,7 +408,7 @@ RUN set -ex \
|
397 | 408 | ENV PYTHON_38_VERSION="3.8.1"
|
398 | 409 |
|
399 | 410 | COPY tools/runtime_configs/python/$PYTHON_38_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION
|
400 |
| -RUN pyenv install $PYTHON_38_VERSION; rm -rf /tmp/* |
| 411 | +RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION; rm -rf /tmp/* |
401 | 412 | RUN pyenv global $PYTHON_38_VERSION
|
402 | 413 | RUN set -ex \
|
403 | 414 | && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
|
|
0 commit comments