prepared app for production (removed global variables, add flask-pymongo as db driver
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
5
dockerfiles/python-env/entrypoint.sh
Executable file
5
dockerfiles/python-env/entrypoint.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "testing entrypoint."
|
||||
$(exit 1)
|
||||
exit 0
|
||||
Reference in New Issue
Block a user