first commit
This commit is contained in:
13
relay/Dockerfile
Normal file
13
relay/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
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"]
|
||||
Reference in New Issue
Block a user