servicesToptal's picture
Add dataset (part 2)
3e0451f verified
Raw History Blame Contribute Delete
935 Bytes
# The grader: the original environment's grading code and locked
# dependencies, LibreOffice and Poppler to recalculate workbooks and render
# pages for the judge, the rubric, and a pristine copy of the case room.
FROM python:3.12-slim@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea
COPY --from=ghcr.io/astral-sh/uv:0.8.24 /uv /uvx /bin/
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 DEBIAN_FRONTEND=noninteractive SAL_USE_VCLPLUGIN=svp
RUN apt-get update && apt-get install -y --no-install-recommends \
file less libxml2 libxslt1.1 ripgrep unzip util-linux \
libreoffice-writer libreoffice-impress libreoffice-calc \
poppler-utils fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /grader
COPY grader/pyproject.toml grader/uv.lock /grader/
RUN uv sync --frozen --no-dev
COPY grader/ /grader/
COPY test.sh grade.py /tests/
RUN chmod 755 /tests/test.sh
CMD ["sleep", "infinity"]