Files
workphone-sdk/sdk/Dockerfile

18 lines
362 B
Docker

# 工作手机SDK v3.0 - Dockerfile
FROM python:3.11-slim
WORKDIR /app
# 安装Python依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# 复制应用代码
COPY app/ /app/
# 暴露端口
EXPOSE 8899
# 启动命令
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8899"]