Docker: python:3.12-slim, CPU-torch, веса модели в образе, compose на порт 8011

This commit is contained in:
2026-10-07 13:54:40 +03:00
parent d448884294
commit 7ee49e8c9f
3 changed files with 67 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
services:
dino-service:
build: .
image: dino-v2:latest
ports:
- "8011:8000"
env_file: .env
environment:
PORT: "8000"
WORKERS: "1"
restart: unless-stopped
# Stateless: реплики можно масштабировать за балансировщиком,
# но каждая держит свою копию модели в RAM (~0.5 ГБ)