Created
March 6, 2024 19:07
-
-
Save Davidnet/e1b06130b276da5b72e4bd313654c678 to your computer and use it in GitHub Desktop.
python build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download Python x source | |
RUN cd /tmp && \ | |
wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz && \ | |
tar -xf Python-$PYTHON_VERSION.tar.xz | |
# Compile Python | |
RUN cd /tmp/Python-$PYTHON_VERSION && \ | |
./configure --enable-optimizations --enable-shared && \ | |
make -j 8 && \ | |
make altinstall && \ | |
ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment