Dockerfile.latest 678 B

12345678910111213141516171819202122232425
  1. FROM python:3.10-slim-bullseye
  2. LABEL maintainer="i@hanfangyuan.cn"
  3. ARG TZ='Asia/Shanghai'
  4. ENV BUILD_PREFIX=/app
  5. ADD . ${BUILD_PREFIX}
  6. RUN apt-get update \
  7. &&apt-get install -y --no-install-recommends bash ffmpeg espeak libavcodec-extra\
  8. && cd ${BUILD_PREFIX} \
  9. && cp config-template.json config.json \
  10. && /usr/local/bin/python -m pip install --no-cache --upgrade pip \
  11. && pip install --no-cache -r requirements.txt \
  12. && pip install --no-cache -r requirements-optional.txt \
  13. && pip install azure-cognitiveservices-speech
  14. WORKDIR ${BUILD_PREFIX}
  15. ADD docker/entrypoint.sh /entrypoint.sh
  16. RUN chmod +x /entrypoint.sh
  17. ENTRYPOINT ["/entrypoint.sh"]