Dockerfile 651 B

123456789101112131415161718192021222324252627282930
  1. FROM python:3.10-slim-bullseye
  2. RUN apt update
  3. RUN apt install -y build-essential tzdata gfortran libopenblas-dev libboost-all-dev
  4. ENV TZ=America/New_York
  5. ENV _workroot "/usr/local/scriptshifter/src"
  6. WORKDIR ${_workroot}
  7. COPY requirements.txt ./
  8. RUN pip install -r requirements.txt
  9. # Remove development packages.
  10. RUN apt remove -y build-essential
  11. RUN apt autoremove -y
  12. RUN addgroup --system www
  13. RUN adduser --system www
  14. RUN gpasswd -a www www
  15. COPY entrypoint.sh uwsgi.ini wsgi.py ./
  16. COPY ext ./ext/
  17. COPY scriptshifter ./scriptshifter/
  18. RUN chmod +x ./entrypoint.sh
  19. RUN chown -R www:www ${_workroot} .
  20. EXPOSE 8000
  21. ENTRYPOINT ["./entrypoint.sh"]