The KISS Twitch bot
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

28 строки
452 B

  1. FROM python:3.9-slim
  2. RUN useradd --create-home --shell /bin/bash bot
  3. WORKDIR /home/bot
  4. ENV PATH="/home/bot:${PATH}"
  5. # Prepare environment
  6. RUN python -m pip install --upgrade pip
  7. RUN pip install poetry
  8. COPY pyproject.toml .
  9. COPY poetry.lock .
  10. COPY twason/ twason/
  11. # Install project
  12. RUN poetry install && \
  13. poetry build && \
  14. pip install dist/*.whl
  15. RUN mkdir config
  16. USER bot
  17. CMD ["python", "-m", "twason", "--config=config/config.json"]