Dockerfile 585 B

1234567891011121314151617181920212223242526
  1. FROM docker.io/library/python:3.10
  2. # 设置工作目录
  3. WORKDIR .
  4. # 复制应用程序文件到容器中
  5. COPY . .
  6. # 安装应用程序依赖项
  7. RUN apt-get update && \
  8. apt-get install -y portaudio19-dev ffmpeg libasound2-dev
  9. RUN pip install requests
  10. # docker跑ai vtb不太行,声卡加载有问题,pyautogui加载也有问题(模拟键鼠)
  11. RUN pip install -r requirements.txt -i https://pypi.org/simple/
  12. # 设置环境变量(如果需要)
  13. # 暴露应用程序的端口(如果需要)
  14. EXPOSE 8081
  15. EXPOSE 8082
  16. # 启动应用程序
  17. CMD ["python", "webui.py"]