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