File size: 301 Bytes
feb939c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.10.16-slim

WORKDIR /app

# 复制所需文件到容器中
COPY . .


RUN pip install --no-cache-dir -r requirements.txt
ENV APP_SECRET="sk-123456"
ENV REQUEST_TIMEOUT=30

# Expose port
EXPOSE 8001

# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]