Download tasks/task_032/environment/Dockerfile from OpenMOSS-Team/SWE-bench-Science: direct link, hf CLI and curl.
- Browser
- Download file 2.1 kB
-
https://huggingface.co/datasets/OpenMOSS-Team/SWE-bench-Science/resolve/main/tasks/task_032/environment/Dockerfile
- Command line
-
hf download hf://datasets/OpenMOSS-Team/SWE-bench-Science/tasks/task_032/environment/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/OpenMOSS-Team/SWE-bench-Science/resolve/main/tasks/task_032/environment/Dockerfile
2.1 kB
| ARG BASE_IMAGE=python:3.11-slim | |
| FROM ${BASE_IMAGE} | |
| ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian | |
| ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security | |
| ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple | |
| ARG INSTALL_FORTRAN=0 | |
| ARG INSTALL_OCTAVE=0 | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=1 \ | |
| PIP_INDEX_URL=${PIP_INDEX_URL} \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 | |
| RUN sed -i \ | |
| -e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \ | |
| -e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \ | |
| /etc/apt/sources.list.d/debian.sources | |
| RUN apt-get -o Acquire::Retries=10 update \ | |
| && apt-get -o Acquire::Retries=10 install -y --no-install-recommends \ | |
| build-essential \ | |
| ca-certificates \ | |
| curl \ | |
| git \ | |
| ripgrep \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \ | |
| apt-get -o Acquire::Retries=10 update \ | |
| && apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \ | |
| && rm -rf /var/lib/apt/lists/*; \ | |
| fi \ | |
| && if [ "${INSTALL_OCTAVE}" = "1" ]; then \ | |
| apt-get -o Acquire::Retries=10 update \ | |
| && apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \ | |
| && rm -rf /var/lib/apt/lists/*; \ | |
| fi | |
| WORKDIR /app/task_032 | |
| COPY repo/ /app/task_032/source/ | |
| COPY public/ /app/task_032/ | |
| COPY requirements.lock /app/task_032/requirements.lock | |
| RUN python -m pip install --no-cache-dir --upgrade pip \ | |
| && python -m pip install --no-cache-dir -r requirements.lock | |
| ENV PYTHONPATH=/app/task_032:/app/task_032/source | |
| RUN git init \ | |
| && git checkout -b main \ | |
| && git config user.email science-bench@example.invalid \ | |
| && git config user.name "SWE-bench Science baseline" \ | |
| && git add -A \ | |
| && GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \ | |
| GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \ | |
| git commit -m baseline \ | |
| && git reflog expire --expire=now --all \ | |
| && git gc --prune=now | |
| CMD ["bash"] | |