您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Dockerfile.debian.latest 846B

123456789101112131415161718192021222324252627282930313233
  1. FROM python:3.10-slim
  2. LABEL maintainer="foo@bar.com"
  3. ARG TZ='Asia/Shanghai'
  4. ARG CHATGPT_ON_WECHAT_VER
  5. ENV BUILD_PREFIX=/app
  6. ADD . ${BUILD_PREFIX}
  7. RUN apt-get update \
  8. &&apt-get install -y --no-install-recommends bash \
  9. ffmpeg espeak \
  10. && cd ${BUILD_PREFIX} \
  11. && cp config-template.json config.json \
  12. && /usr/local/bin/python -m pip install --no-cache --upgrade pip \
  13. && pip install --no-cache -r requirements.txt \
  14. && pip install --no-cache -r requirements-optional.txt \
  15. && pip install azure-cognitiveservices-speech
  16. WORKDIR ${BUILD_PREFIX}
  17. ADD docker/entrypoint.sh /entrypoint.sh
  18. RUN chmod +x /entrypoint.sh \
  19. && groupadd -r noroot \
  20. && useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
  21. && chown -R noroot:noroot ${BUILD_PREFIX}
  22. USER noroot
  23. ENTRYPOINT ["docker/entrypoint.sh"]