diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e682794 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4b5b586 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3.8' + +services: + llmproxy: + build: . + ports: + - "8000:8000" + volumes: + - .:/app + restart: unless-stopped diff --git a/requirements.txt b/requirements.txt index 2b7a354..9d3c140 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +fastapi +uvicorn[standard] +httpx python-dotenv -pydantic -requests