Skip to content

Commit

Permalink
Fix errors in tier2
Browse files Browse the repository at this point in the history
  • Loading branch information
int-y1 committed Dec 21, 2024
1 parent 3b92d03 commit db46850
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tier2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ RUN apt-get update && \
$([ "$(arch)" = x86_64 ] && echo libc6-dev-i386) \
openjdk-22-jdk-headless clang llvm ghc golang racket ruby scala nasm chicken-bin && \
( export OPAMYES=1 OPAMJOBS=$(($(nproc) + 2)); \
apt-get install -y --no-install-recommends make m4 patch unzip libgmp-dev && \
apt-get install -y --no-install-recommends make m4 patch unzip libgmp-dev pkg-config && \
bash -c 'echo | sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) --no-backup' && \
runuser -u judge -- opam init --shell-setup --disable-sandboxing --bare && \
runuser -u judge -- opam switch create dmoj --packages=ocaml.5.0.0,ocaml-option-flambda && \
runuser -u judge -- opam install base core stdio zarith && \
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 db46850

Please sign in to comment.