sms_server/Dockerfile
李寻欢 f2d5882573
All checks were successful
BuildImage / build-image (push) Successful in 1m3s
🆕 新增AI提取验证码功能
2025-03-25 09:37:35 +08:00

21 lines
363 B
Docker

FROM python:3.9-slim
WORKDIR /app
# 复制代码
COPY . .
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt
# 创建数据目录
RUN mkdir -p /app/data
# 确保数据目录有正确的权限
RUN chmod -R 755 /app/data
# 暴露应用端口
EXPOSE 8322
# 运行应用
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8322"]