Dockerfile 693 B

12345678910111213141516171819202122232425262728293031
  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. RUN addgroup --system www
  7. RUN adduser --system www
  8. RUN gpasswd -a www www
  9. COPY entrypoint.sh uwsgi.ini wsgi.py ./
  10. COPY ext ./ext/
  11. COPY scriptshifter ./scriptshifter/
  12. WORKDIR ${_workroot}
  13. COPY requirements.txt ./
  14. RUN pip install --no-cache-dir -r requirements.txt
  15. # Remove development packages.
  16. RUN apt remove -y build-essential git
  17. RUN apt autoremove -y
  18. RUN rm -rf ext/yiddish
  19. RUN chmod +x ./entrypoint.sh
  20. RUN chown -R www:www ${_workroot} .
  21. EXPOSE 8000
  22. ENTRYPOINT ["./entrypoint.sh"]