feat: add requirements, Dockerfile and docker-compose

This commit is contained in:
Vertex-AI-Step-Builder
2025-12-31 15:30:00 +00:00
parent fa419ccac4
commit 912b027864
3 changed files with 24 additions and 2 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

10
docker-compose.yml Normal file
View File

@@ -0,0 +1,10 @@
version: '3.8'
services:
llmproxy:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
restart: unless-stopped

View File

@@ -1,3 +1,4 @@
fastapi
uvicorn[standard]
httpx
python-dotenv
pydantic
requests