Dockerfile 555 B

12345678910111213141516171819202122232425
  1. FROM python:3.9-alpine3.15
  2. RUN apk add --no-cache -t buildtools build-base gfortran
  3. RUN apk add --no-cache linux-headers
  4. ENV _workroot "/usr/local/scriptshifter/src"
  5. WORKDIR ${_workroot}
  6. COPY requirements.txt ./
  7. RUN pip install -r requirements.txt
  8. COPY entrypoint.sh uwsgi.ini wsgi.py ./
  9. COPY ext ./ext/
  10. COPY scriptshifter ./scriptshifter/
  11. RUN chmod +x ./entrypoint.sh
  12. RUN addgroup -S www && adduser -S www -G www
  13. RUN chown -R www:www ${_workroot} .
  14. # Remove development packages.
  15. RUN apk del buildtools
  16. EXPOSE 8000
  17. ENTRYPOINT ["./entrypoint.sh"]