Dockerfile 589 B

1234567891011121314151617181920212223242526
  1. FROM python:3.9-alpine3.15
  2. RUN apk add --no-cache -t buildtools build-base
  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. #RUN pip install ext/arabic_transliterator
  11. COPY scriptshifter ./scriptshifter/
  12. RUN chmod +x ./entrypoint.sh
  13. RUN addgroup -S www && adduser -S www -G www
  14. RUN chown -R www:www ${_workroot} .
  15. # Remove development packages.
  16. RUN apk del buildtools
  17. EXPOSE 8000
  18. ENTRYPOINT ["./entrypoint.sh"]