Dockerfile 609 B

123456789101112131415161718
  1. FROM tiangolo/gunicorn:latest
  2. RUN apt-get update && \
  3. apt-get install -y vim wget curl sngrep tcpflow tcpdump
  4. WORKDIR /home/model-server
  5. ADD ./ai-slibra-assistant /home/model-server
  6. COPY ./requirements.txt /home/model-server/requirements.txt
  7. # 安装依赖
  8. RUN pip install -r /home/model-server/requirements.txt
  9. EXPOSE 40072
  10. #CMD ["gunicorn", "-w 1", "-b 0.0.0.0:8000", "src.core.server:app"]
  11. #CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "--worker-class", "eventlet", "src.core.server:app"]
  12. CMD ["/bin/sh", "-c", "cd /home/model-server/api && python AiBot.py"]
  13. #CMD ["tail", "-f", "/dev/null"]