personabot-api / Dockerfile.embedder
GitHub Actions
Deploy 5a96418
bbe01fe
raw
history blame contribute delete
432 Bytes
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"]