opc / Dockerfile-back
bill322's picture
Rename Dockerfile to Dockerfile-back
bab357d verified
Raw History Blame Contribute Delete
672 Bytes
FROM node:22-slim
# 安装基础依赖
RUN apt-get update && apt-get install -y --no-install-recommends \
git openssh-client build-essential python3 python3-pip \
g++ make ca-certificates && rm -rf /var/lib/apt/lists/*
# 安装 Python 依赖
RUN pip3 install --no-cache-dir huggingface_hub fastapi uvicorn httpx websockets --break-system-packages
# 安装 OpenClaw
RUN npm install -g openclaw@latest --unsafe-perm
# 设置工作目录
WORKDIR /app
# 复制所有文件
COPY sync.py .
COPY start.sh .
COPY panel.py .
RUN chmod +x start.sh
# 环境变量
ENV HOME=/root
# 暴露 HuggingFace Space 要求的端口
EXPOSE 7860
# 启动命令
CMD ["./start.sh"]