28 lines
596 B
Docker
28 lines
596 B
Docker
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -y \
|
|
ca-certificates \
|
|
docker-cli \
|
|
git \
|
|
libmagic1 \
|
|
libolm3 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY requirements.txt ./
|
|
RUN python -m pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY bot.py config.py main.py run_sumka.sh ./
|
|
RUN chmod +x /usr/src/app/run_sumka.sh
|
|
|
|
WORKDIR /runtime
|
|
STOPSIGNAL SIGTERM
|
|
|
|
CMD ["python", "/usr/src/app/main.py"]
|