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

29 行
819B

  1. FROM python:3.10-alpine
  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 apk add --no-cache bash ffmpeg espeak \
  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 --extra-index-url https://alpine-wheels.github.io/index\
  12. && pip install --no-cache -r requirements-optional.txt --extra-index-url https://alpine-wheels.github.io/index
  13. WORKDIR ${BUILD_PREFIX}
  14. ADD docker/entrypoint.sh /entrypoint.sh
  15. RUN chmod +x /entrypoint.sh \
  16. && adduser -D -h /home/noroot -u 1000 -s /bin/bash noroot \
  17. && chown -R noroot:noroot ${BUILD_PREFIX}
  18. USER noroot
  19. ENTRYPOINT ["docker/entrypoint.sh"]