openclaw / Dockerfile
Lory0000's picture
Create Dockerfile
fbec0d0 verified
raw
history blame contribute delete
609 Bytes
# Usa l'immagine ufficiale di Python
FROM python:3.11-slim
# Imposta la directory di lavoro
WORKDIR /app
# Installa le dipendenze di sistema necessarie per OpenClaw
RUN apt-get update && apt-get install -y \
git \
chromium \
chromium-driver \
&& rm -rf /var/lib/apt/lists/*
# Clona l'ultima versione di OpenClaw (Molty)
RUN git clone https://github.com/reworkd/OpenClaw.git .
# Installa le dipendenze Python
RUN pip install --no-cache-dir -r requirements.txt
# Espone la porta (Hugging Face usa la 7860 di default)
EXPOSE 7860
# Comando per avviare l'assistente
CMD ["python", "main.py"]