prepared app for production (removed global variables, add flask-pymongo as db driver

This commit is contained in:
2019-05-04 01:28:46 +02:00
parent 707034153c
commit 2ff339e24c
12 changed files with 140 additions and 134 deletions

View File

@@ -1,26 +1,25 @@
FROM ubuntu:16.04
FROM ubuntu:18.04
RUN apt-get update --fix-missing
RUN apt-get install -y \
vim \
python3 \
python3-pip \
sshfs
sshfs \
curl
RUN pip3 install --upgrade pip
RUN pip3 install \
lxml \
pandas \
sklearn \
argparse \
pyyaml \
pathlib \
flask \
flask_cors \
pymongo \
flask
RUN apt-get install -y \
curl
flask-pymongo
ENV PYTHONIOENCODING UTF-8
RUN pip3 install \
pyyaml \
flask_cors

View File

@@ -1,4 +1,4 @@
IMAGE_NAME="cjvt-python-env"
IMAGE_NAME="cjvt-python-env" # don't change, used in backend_flask/Makefile
CNNAME="python-env"
all: build run

View File

@@ -0,0 +1,5 @@
#!/bin/bash
echo "testing entrypoint."
$(exit 1)
exit 0