Browse Source

sse support

aguryev 3 years ago
parent
commit
0aa0d2ea4f
3 changed files with 9 additions and 9 deletions
  1. 8 7
      dockerized/Dockerfile.backend
  2. 0 1
      dockerized/Dockerfile.frontend
  3. 1 1
      dockerized/runbackend.sh

+ 8 - 7
dockerized/Dockerfile.backend

@@ -8,13 +8,13 @@ RUN apk add --no-cache --update-cache \
 
 # postgres dependencies
 RUN apk add --no-cache --update-cache \
-		postgresql-dev=9.6.10-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.5/main
+        postgresql-dev=9.6.10-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.5/main
 
 # numpy-scipy dependencies
 RUN apk add --no-cache --update-cache \
-		gfortran python python-dev py-pip \
-		build-base wget freetype-dev \
-		libpng-dev openblas-dev
+        gfortran python python-dev py-pip \
+        build-base wget freetype-dev \
+        libpng-dev openblas-dev
 RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
 
 RUN mkdir /polzy
@@ -25,9 +25,10 @@ RUN git clone https://gogs.earthsquad.global/athos/PoLZy_Showcase .
 RUN python -m venv venv
 RUN venv/bin/pip install --upgrade pip
 RUN venv/bin/pip install -r requirements.txt
-RUN venv/bin/pip install gunicorn 
-RUN venv/bin/pip install cryptography psycopg2
-RUN venv/bin/pip install gevent
+RUN venv/bin/pip install gunicorn gevent
+
+# postgres support 
+#RUN venv/bin/pip install cryptography psycopg2
 
 COPY runbackend.sh runbackend.sh
 RUN chmod +x runbackend.sh

+ 0 - 1
dockerized/Dockerfile.frontend

@@ -6,7 +6,6 @@ RUN mkdir /polzy
 WORKDIR /polzy
 
 RUN git clone https://gogs.earthsquad.global/athos/PoLZy .
-RUN git checkout no-toast
 
 WORKDIR /polzy/polzy-frontend
 

+ 1 - 1
dockerized/runbackend.sh

@@ -4,4 +4,4 @@ flask db init
 flask db migrate
 flask db upgrade
 python populate_db.py
-exec gunicorn --timeout 100 --workers 3 -b :5000 --access-logfile - --error-logfile - app:app -k gevent
+exec gunicorn -b 0.0.0.0:5000 -t 999999 -k gevent app:app