zzqsb's picture
Release the REE tasks and dataset card.
7f50cd1
Raw History Blame Contribute Delete
1.33 kB
FROM python:3.10-slim-bookworm@sha256:db6ee5170ebce0f4d165af242e8e77addc08bd9ffc37e8b1815752cf027aa4f8
RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /requirements.txt
RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r /requirements.txt
ENV OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 NUMBA_NUM_THREADS=1 PYTHONUNBUFFERED=1
RUN pip install --no-cache-dir tomli==2.0.1
# ---- the toolchain both sides carry ----
# A compiled method must build where it is graded, not only where it was written.
RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc g++ make \
&& rm -rf /var/lib/apt/lists/*
# ---- the package's layers ----
USER root
ENV OMP_NUM_THREADS=4 OPENBLAS_NUM_THREADS=4 MKL_NUM_THREADS=4 NUMEXPR_NUM_THREADS=4 PYTHONDONTWRITEBYTECODE=1 CORE_DIR=/app/core
WORKDIR /app
COPY core/ /app/core/
COPY package_common.py runner.py selfcheck.py /app/
COPY data/ /app/data/
COPY data-answers/ /app/data-answers/
COPY methods/ /app/methods/
RUN chmod -R a+rX /app && chmod +x /app/methods/main/run.sh
# The unprivileged account: the rehearsal runs the method under it, as grading does.
RUN groupadd -g 4242 solver && useradd -u 4242 -g 4242 -M -s /usr/sbin/nologin solver