HF_catalyst / Dockerfile
SissiFeng's picture
修改SDK配置为docker并添加Dockerfile
d9a238a
raw
history blame contribute delete
244 Bytes
FROM python:3.9-slim
WORKDIR /app
# 复制项目文件
COPY . .
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt
# 暴露端口
EXPOSE 8080
# 启动命令
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]