Files
telegram-scam-baiter/Dockerfile
2025-10-03 16:22:07 -07:00

25 lines
607 B
Docker

FROM python:3.13.7-slim
ENV DEBUG=0 \
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_ROOT_USER_ACTION=ignore \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VERSION=2.2.1 \
HISTORY_FILE=/data/chat_history.jsonl \
TG_SESSION=/data/telethon_session
WORKDIR /app
COPY poetry.lock pyproject.toml /app/
RUN pip install --upgrade pip
RUN pip install poetry==${POETRY_VERSION}
RUN poetry config virtualenvs.create false \
&& poetry install --only main --no-interaction --no-ansi
COPY . /app/
CMD ["python", "main.py"]