Add FastAPI image generation service
Provide containerized GPT and Grok image generation with environment-based configuration.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY agent-image-t2i.py .
|
||||
RUN mkdir -p /app/output
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uvicorn", "agent-image-t2i:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Reference in New Issue
Block a user