feat(prompt-compression): add headroom raw proxy deployment for Render

This commit is contained in:
Krrish Dholakia 2026-06-25 22:22:29 -07:00
parent 498b8d85cd
commit d50061a1e5
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,14 @@
FROM python:3.12-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential \
&& pip install --no-cache-dir "headroom-ai[proxy]==0.27.0" \
&& apt-get purge -y build-essential \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 8787
ENV HEADROOM_TELEMETRY=off
CMD ["headroom", "proxy", "--host", "0.0.0.0", "--port", "8787"]

View file

@ -0,0 +1,15 @@
services:
- type: web
name: headroom-proxy
runtime: docker
plan: starter
dockerfilePath: ./Dockerfile
dockerContext: .
envVars:
- key: OPENAI_API_KEY
sync: false
- key: ANTHROPIC_API_KEY
sync: false
- key: HEADROOM_TELEMETRY
value: "off"
healthCheckPath: /health