Dockerfile 457 B

12345678910111213141516171819202122
  1. FROM python:3.9
  2. HEALTHCHECK CMD curl --fail http://localhost:5000/ || exit 1
  3. RUN pip install --upgrade pip
  4. ENV ROLLBOT_LIB_DIR /rollbot-lib/
  5. ENV ROLLBOT_CFG_DIR /rollbot-config/
  6. ENV ROLLBOT_APP_DIR /rollbot-app/
  7. WORKDIR ${ROLLBOT_APP_DIR}
  8. EXPOSE 6070
  9. ADD requirements.txt .
  10. RUN pip install -r requirements.txt
  11. ADD lib/ ${ROLLBOT_LIB_DIR}
  12. RUN pip install -e ${ROLLBOT_LIB_DIR}
  13. ADD src/ .
  14. CMD ["gunicorn", "groupme_bot:app", "--bind", "0.0.0.0:6070"]