HF-Space-Deployer / Dockerfile
HuggingFace0920's picture
Create Dockerfile
d58858d verified
raw
history blame
359 Bytes
FROM python:3.10-slim
# 安装git
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# 克隆仓库
RUN git clone https://github.com/kfcx/HFSpaceDeploy.git /app
WORKDIR /app
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt
# 运行主程序前暴露端口
EXPOSE 7860
# 运行主程序
CMD ["python", "main.py"]