余尚辉 2 months ago
parent
commit
8a640e3d1b
2 changed files with 17 additions and 0 deletions
  1. 17 0
      Dockerfile
  2. 0 0
      requirements.txt

+ 17 - 0
Dockerfile

@@ -0,0 +1,17 @@
+FROM tiangolo/gunicorn:latest
+RUN apt-get update && \
+    apt-get install -y vim wget curl sngrep tcpflow tcpdump
+
+
+WORKDIR /code
+ADD ./models /code
+
+# 安装项目依赖
+RUN pip install -r requirements.txt
+
+EXPOSE 50072
+#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 ["/bin/sh", "-c", "cd python web.py"]
+#CMD ["tail", "-f", "/dev/null"]

+ 0 - 0
requirements.txt