owen-carter 6 лет назад
Родитель
Сommit
340bfdde30
2 измененных файлов с 3 добавлено и 3 удалено
  1. 0 2
      .dockerignore
  2. 3 1
      Dockerfile

+ 0 - 2
.dockerignore

@@ -10,8 +10,6 @@ docker-compose*
 .idea/
 .travis.yml
 
-admin.sh
-
 test
 screenshot
 migrations

+ 3 - 1
Dockerfile

@@ -1,5 +1,7 @@
 FROM python:2.7
 
+ENV FLASK_APP waller.py
+
 WORKDIR /usr/app/
 
 COPY ./requirements/prod.txt .
@@ -8,6 +10,6 @@ RUN pip install futures
 RUN pip install -r prod.txt -i https://mirrors.aliyun.com/pypi/simple
 
 COPY . .
-RUN python waller.py db upgrade
+RUN flask db upgrade
 
 CMD python waller.py start