deploy: add Dockerfile and docker-compose for production

This commit is contained in:
2026-07-01 13:08:42 +05:30
parent 377ee710a7
commit ad753be7a5
2 changed files with 65 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/logs
CMD ["python", "main.py", "--production"]