Download tasks/bibliometric_lab/environment/Dockerfile from Tokenwave-AI/REE: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/datasets/Tokenwave-AI/REE/resolve/main/tasks/bibliometric_lab/environment/Dockerfile
- Command line
-
hf download hf://datasets/Tokenwave-AI/REE/tasks/bibliometric_lab/environment/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/Tokenwave-AI/REE/resolve/main/tasks/bibliometric_lab/environment/Dockerfile
1.36 kB
| FROM python@sha256:a6e34c598f2467ed0e9a8d349809fcd8b5c603269512df273a0bb1784edc11b1 | |
| WORKDIR /app/core | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| COPY neural-requirements.txt /tmp/neural-requirements.txt | |
| COPY wheels /tmp/neural-wheels | |
| RUN pip install --no-cache-dir --no-index --no-deps --find-links /tmp/neural-wheels -r /tmp/neural-requirements.txt && pip check && rm -rf /tmp/neural-wheels | |
| COPY text_encoder /opt/text_encoder | |
| ENV HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=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 | |