Spaces:
Running
Running
File size: 746 Bytes
69e3ef6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | FROM node:22-slim
# Install system utilities
RUN apt-get update && apt-get install -y \
git \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Install OpenClaw globally
RUN npm install -g openclaw@latest
# Create configuration directories with correct permissions
RUN mkdir -p /root/.openclaw/agents/main/agent \
&& mkdir -p /root/.openclaw/agents/main/sessions \
&& mkdir -p /root/.openclaw/credentials
# Set Environment Variables
ENV PORT=7860
ENV OPENCLAW_GATEWAY_MODE=local
# Copy startup script
COPY start.sh /usr/local/bin/start-openclaw
RUN chmod +x /usr/local/bin/start-openclaw
# Expose the standard HF port
EXPOSE 7860
# Start
CMD ["/usr/local/bin/start-openclaw"] |