Initial commit (codex)
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user