瀏覽代碼

加入gateway

owen-carter 6 年之前
父節點
當前提交
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