prod files

This commit is contained in:
Raykov-MS 2026-03-01 19:39:08 +03:00
parent 913d245bdd
commit 6c35849677
2 changed files with 23 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080", "--env-file", "/app/.env"]

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
services:
botreviewer:
build: .
container_name: botreviewer
restart: always
ports:
- "127.0.0.1:8080:8080"
env_file:
- .env
volumes:
- ./botreviewer.sqlite3:/app/botreviewer.sqlite3