FastAPI 기반 OCR 서비스 구현 및 Docker 환경 구성

This commit is contained in:
kyy
2025-11-05 15:49:47 +09:00
parent fe8601ac63
commit 4524552f8f
7 changed files with 213 additions and 680 deletions

View File

@@ -3,13 +3,15 @@ services:
build:
context: .
dockerfile: Dockerfile
image: deepseek-ocr-vllm:cu126
image: deepseek-ocr-api:torch2.6.0-cuda12.6-cudnn9-vllm0.8.5
container_name: deepseek_ocr_vllm
working_dir: /workspace
volumes:
- ./:/workspace
ports:
- "11635:11635"
gpus: all
shm_size: "8g"
shm_size: "16g"
ipc: "host"
environment:
- HF_HOME=/workspace/.cache/huggingface
@@ -18,4 +20,10 @@ services:
- PIP_DISABLE_PIP_VERSION_CHECK=1
- PYTHONUNBUFFERED=1
tty: true
entrypoint: ["/bin/bash"]
restart: always
networks:
- llm_gateway_local_net
networks:
llm_gateway_local_net:
external: true