Created
February 21, 2025 22:55
-
-
Save luccabb/a0a48b15cd30746e7619ecb7168ce439 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| FROM ubuntu:20.04 | |
| ENV TZ=America/Pacific | |
| RUN apt-get update && apt-get install -y tzdata && \ | |
| ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| wget \ | |
| libssl-dev \ | |
| libreadline-dev \ | |
| libffi-dev \ | |
| zlib1g-dev \ | |
| libsqlite3-dev \ | |
| libbz2-dev \ | |
| liblzma-dev \ | |
| libncurses5-dev \ | |
| libgdbm-dev \ | |
| libnss3-dev \ | |
| libxml2-dev \ | |
| libxmlsec1-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /usr/src | |
| RUN git clone --branch fix_resource_tracker_leak --single-branch https://github.com/luccabb/cpython.git | |
| WORKDIR /usr/src/cpython | |
| RUN ./configure && make && make install | |
| WORKDIR /usr/src/multi | |
| COPY . ./ | |
| ENV PATH="/usr/local/bin:${PATH}" | |
| CMD ["python", "main.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment