浏览代码

Moving gunicorn config to separate file

Kirk Trombley 5 年之前
父节点
当前提交
10d2dd9f12
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 2 2
      server/Dockerfile
  2. 5 0
      server/gunicorn.conf.py

+ 2 - 2
server/Dockerfile

@@ -14,6 +14,6 @@ COPY requirements.txt ./
 
 RUN pip3 install -r requirements.txt
 
-COPY app.py db.py extra_api.py game_api.py sources.py lib.py ./
+COPY app.py db.py extra_api.py game_api.py sources.py lib.py gunicorn.conf.py ./
 
-CMD gunicorn --workers=1 --bind=0.0.0.0:5000 app:app
+CMD gunicorn app:app

+ 5 - 0
server/gunicorn.conf.py

@@ -0,0 +1,5 @@
+workers = 1
+threads = 4
+worker_tmp_dir = "/dev/shm"
+
+bind = "0.0.0.0:5000"