File size: 432 Bytes
bbe01fe
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
FROM python:3.11-slim
WORKDIR /app
RUN pip install --no-cache-dir fastapi uvicorn sentence-transformers==3.0.1
COPY app/services/embedder.py ./embedder.py

# Minimal FastAPI wrapper that exposes /embed and /health endpoints.
# Cloud Run calls this via HTTP. The model is loaded once at startup.
COPY infra/oracle/embedder_server.py ./server.py

CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8001", "--workers", "1"]