Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

33 rindas
842B

  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"]