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

@@ -0,0 +1,16 @@
IMG="backend-flask"
CNT="backend_flask"
clean:
- docker rm -f $(CNT)
run: clean build
docker run -d --net host --name $(CNT) $(IMG)
docker logs -f $(CNT)
build: build-cjvt-python-env
# docker build . -f ../../Dockerfile-backend-flask -t $(IMG)
cd ../..; docker build . -f Dockerfile-backend-flask -t $(IMG)
build-cjvt-python-env:
cd ../../dockerfiles/python-env; $(MAKE) build