Эх сурвалжийг харах

Dockerfile for just server image

Kirk Trombley 5 жил өмнө
parent
commit
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