Dockerfile 254 B

12345678910111213141516
  1. FROM python:2.7
  2. WORKDIR /usr/app/
  3. COPY ./requirements/prod.txt .
  4. RUN pip install futures
  5. RUN mkdir logs
  6. RUN pip install -r prod.txt -i https://mirrors.aliyun.com/pypi/simple
  7. ENV FLASK_APP waller.py
  8. COPY . .
  9. RUN flask db upgrade
  10. CMD python waller.py