scriptshifter_base.Dockerfile 548 B

1234567891011121314151617181920212223
  1. FROM python:3.10-slim-bookworm
  2. RUN apt update
  3. RUN apt install -y build-essential tzdata gfortran libopenblas-dev libboost-all-dev libpcre2-dev
  4. ENV TZ=America/New_York
  5. ARG WORKROOT "/usr/local/scriptshifter/src"
  6. RUN addgroup --system www
  7. RUN adduser --system www
  8. RUN gpasswd -a www www
  9. ENV HF_DATASETS_CACHE /data/hf/datasets
  10. # Copy external dependencies.
  11. WORKDIR ${WORKROOT}
  12. COPY ext ./ext/
  13. COPY deps.txt ./
  14. RUN pip install --no-cache-dir -r deps.txt
  15. # Remove development packages.
  16. RUN apt remove -y build-essential git
  17. RUN apt autoremove -y