Skip to content

Commit

Permalink
tier2: fix pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
hieplpvip committed Jul 29, 2024
1 parent 21f04e1 commit 5f405f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tier2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ RUN apt-get update && \
runuser -u judge -- opam clean && rm -rf ~judge/.opam/repo \
) && \
if [ "$(arch)" = x86_64 ]; then PYPY_ARCH=linux64; else PYPY_ARCH="$(arch)"; fi && \
mkdir /opt/pypy2 && curl -L "$(curl https://www.pypy.org/download.html | grep "/pypy2.*$PYPY_ARCH" | head -n1 | cut -d'"' -f4)" | \
mkdir /opt/pypy2 && curl -L "$(curl https://pypy.org/download.html | grep "/pypy2.*$PYPY_ARCH" | head -n1 | cut -d'"' -f4)" | \
tar xj -C /opt/pypy2 --strip-components=1 && /opt/pypy2/bin/pypy -mcompileall && \
chmod a+rx /opt/pypy2/lib /opt/pypy2/lib/*.so* && \
rm -f /opt/pypy2/bin/python* && \
mkdir /opt/pypy3 && curl -L "$(curl https://www.pypy.org/download.html | grep "/pypy3.*$PYPY_ARCH" | head -n1 | cut -d'"' -f4)" | \
mkdir /opt/pypy3 && curl -L "$(curl https://pypy.org/download.html | grep "/pypy3.*$PYPY_ARCH" | head -n1 | cut -d'"' -f4)" | \
tar xj -C /opt/pypy3 --strip-components=1 && /opt/pypy3/bin/pypy -mcompileall && \
rm -f /opt/pypy3/bin/python* && \
runuser judge -c 'curl https://sh.rustup.rs -sSf | sh -s -- -y' && \
Expand Down

0 comments on commit 5f405f1

Please sign in to comment.