Last active
February 24, 2021 20:46
-
-
Save stestagg/7c7094365ff328c5558c3d0ea4213099 to your computer and use it in GitHub Desktop.
https://github.com/iritkatriel/cpython/pull/10 - Example Dockerfile
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
FROM ubuntu:21.04 | |
RUN apt update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget make clang unzip | |
#RUN git clone --branch exceptionGroup-stage5 https://github.com/iritkatriel/cpython | |
RUN wget https://github.com/iritkatriel/cpython/archive/exceptionGroup-stage5.zip | |
RUN unzip -x *.zip | |
RUN mv cpython-* cpython | |
RUN sed -i s/\(3434\)/\(3435\)/g /cpython/Lib/importlib/_bootstrap_external.py | |
RUN cd cpython && ./configure --prefix=/prefix --exec-prefix=/prefix --without-ensurepip | |
RUN cd cpython && make -j8 install | |
COPY test.py /test.py | |
ENTRYPOINT /prefix/bin/python3 test.py |
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
try: | |
1/0 | |
except *Exception: | |
print("Something went wrong") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment