소스 검색

Dockerfile for just server image

Kirk Trombley 5 년 전
부모
커밋
9ba03a0ac0
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      server/Dockerfile

+ 17 - 0
server/Dockerfile

@@ -0,0 +1,17 @@
+FROM python:3.8
+
+LABEL maintainer="Kirk Trombley <ktrom3894@gmail.com>"
+
+STOPSIGNAL SIGTERM
+
+RUN pip3 install gunicorn
+
+WORKDIR /app
+
+COPY requirements.txt ./
+
+RUN pip3 install -r requirements.txt
+
+COPY app.py db.py extra_api.py game_api.py lib.py ./
+
+CMD gunicorn --workers=1 --bind=0.0.0.0:5000 app:app