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