mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-04-30 08:59:26 +03:00
16 lines
498 B
Docker
16 lines
498 B
Docker
FROM quay.io/epicmorg/debian:bookworm-python-3.11
|
|
|
|
ENV TELEGRAMBOT_DIR=${EMG_LOCAL_BASE_DIR}/telegram/bot/quotes
|
|
RUN mkdir -p ${TELEGRAMBOT_DIR}
|
|
|
|
WORKDIR ${TELEGRAMBOT_DIR}
|
|
|
|
COPY bot/bot.py ${TELEGRAMBOT_DIR}/bot.py
|
|
COPY bot/quotes.txt ${TELEGRAMBOT_DIR}/quotes.txt
|
|
COPY bot/requirements.txt ${TELEGRAMBOT_DIR}/requirements.txt
|
|
COPY bot/translations.json ${TELEGRAMBOT_DIR}/translations.json
|
|
|
|
RUN pip install --no-cache-dir -r ${TELEGRAMBOT_DIR}/requirements.txt
|
|
|
|
ENTRYPOINT ["python3", "bot.py"]
|