Explorar o código

Dockerfile for just server image

Kirk Trombley %!s(int64=5) %!d(string=hai) anos
pai
achega
9ba03a0ac0
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  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