14 lines
385 B
Docker
14 lines
385 B
Docker
|
|
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY relay.py ./
|
|
ENV PORT=8090
|
|
# Reads API key from OPENAI_API_KEY or OPENAI_API_KEY_FILE (/run/secrets/openai_api_key)
|
|
# AGENT_URL defaults to http://ai-agent:8080
|
|
# OPENAI_MODEL defaults to gpt-4o-mini
|
|
CMD ["uvicorn", "relay:app", "--host", "0.0.0.0", "--port", "8090"]
|