Dockerfile 360 B

123456789101112
  1. FROM python:3.7
  2. WORKDIR /rollbot
  3. ENV ROLLBOT_CFG_DIR /rollbot
  4. EXPOSE 6070
  5. ADD requirements.txt /rollbot
  6. RUN pip install -r requirements.txt
  7. ADD static/ /rollbot/static
  8. ADD templates/ /rollbot/templates
  9. ADD config/config.toml /rollbot
  10. ADD config/secrets.toml /rollbot
  11. ADD src/ /rollbot
  12. CMD ["gunicorn", "rollbot:app", "--bind", "0.0.0.0:6070", "--workers", "9"]