Dockerfile 532 B

1234567891011121314151617181920212223
  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/transliterator/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 transliterator ./transliterator/
  10. RUN chmod +x ./entrypoint.sh
  11. RUN addgroup -S www && adduser -S www -G www
  12. RUN chown -R www:www ${_workroot} .
  13. # Remove development packages.
  14. RUN apk del buildtools
  15. EXPOSE 8000
  16. ENTRYPOINT ["./entrypoint.sh"]