Browse Source

add missing requirement and update Dockerfile to point to cherrypi and keep pip up-to-date

Pi 1 year ago
parent
commit
f6d5203513
2 changed files with 4 additions and 2 deletions
  1. 3 2
      app/rest/Dockerfile
  2. 1 0
      app/rest/requirements.txt

+ 3 - 2
app/rest/Dockerfile

@@ -1,6 +1,7 @@
 FROM python:3-slim
 FROM python:3-slim
 WORKDIR /usr/src/app
 WORKDIR /usr/src/app
 COPY app/rest/requirements.txt ./
 COPY app/rest/requirements.txt ./
-RUN pip install --no-cache-dir -r requirements.txt
+RUN python3 -m pip install --upgrade pip && \
+    python3 -m pip install --no-cache-dir -r requirements.txt
 COPY app ./app
 COPY app ./app
-CMD [ "python", "-m", "app.rest.pyapi" ]
+CMD [ "python", "-m", "app.rest.cherrypy" ]

+ 1 - 0
app/rest/requirements.txt

@@ -1,4 +1,5 @@
 seaborn
 seaborn
 psycopg[binary]
 psycopg[binary]
 bottle
 bottle
+wsgigzip
 cherrypy
 cherrypy