余尚辉 2 months ago
parent
commit
610d9a6a6f
2 changed files with 16 additions and 0 deletions
  1. 16 0
      Dockerfile
  2. 0 0
      requirements.txt

+ 16 - 0
Dockerfile

@@ -0,0 +1,16 @@
+FROM tiangolo/gunicorn:latest
+RUN apt-get update && \
+    apt-get install -y vim wget curl sngrep tcpflow tcpdump
+
+
+WORKDIR /code
+ADD ./ai-slibra-assistant /code
+
+# 安装项目依赖
+RUN pip install -r 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 /code/api && python AiBot.py"]
+#CMD ["tail", "-f", "/dev/null"]

+ 0 - 0
requirements.txt