scriptshifter_base.Dockerfile 507 B

123456789101112131415161718192021
  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. # Copy external dependencies.
  10. WORKDIR ${WORKROOT}
  11. COPY ext ./ext/
  12. COPY deps.txt ./
  13. RUN pip install --no-cache-dir -r deps.txt
  14. # Remove development packages.
  15. RUN apt remove -y build-essential git
  16. RUN apt autoremove -y