File size: 554 Bytes
c0372f3
 
 
 
83b4c2e
c0372f3
9d6ca07
6a725e3
c0372f3
 
 
 
 
 
 
 
 
 
 
8b906ea
 
c0372f3
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.9-slim

WORKDIR /app

# 安装FFmpeg
RUN apt-get update && \

    apt-get install -y ffmpeg \
    fonts-noto-cjk && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# 安装Python依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# 复制应用代码
COPY . .

# 创建必要的目录
RUN mkdir -p temp && chmod 777 temp
RUN mkdir -p storage && chmod 777 storage

# 暴露端口
EXPOSE 8000

# 运行应用
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]