ai-labor-platform / Dockerfile
OpenManus Deployer
fix: 修复Dockerfile中的文件名引用
0d8b6e3
raw
history blame contribute delete
503 Bytes
FROM python:3.11-slim
WORKDIR /app
# 安装系统依赖
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# 复制应用文件
COPY app.py app.py
COPY requirements.txt requirements.txt
# 安装Python依赖
RUN pip install --no-cache-dir -r requirements.txt
# 暴露端口7860(Hugging Face Spaces要求)
EXPOSE 7860
# 运行Streamlit应用,监听端口7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]