Spaces:
Runtime error
Runtime error
| FROM node:22-bookworm-slim | |
| # Configuration de l'environnement | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PORT=7860 | |
| ENV HOST=0.0.0.0 | |
| ENV NODE_ENV=production | |
| # Installation des dépendances système | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| ca-certificates \ | |
| procps \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Installation globale de OpenClaw | |
| RUN npm install -g openclaw@latest | |
| # Configuration utilisateur | |
| USER node | |
| ENV HOME=/home/node | |
| WORKDIR $HOME | |
| # Préparation des dossiers | |
| RUN mkdir -p $HOME/.openclaw/{workspace,credentials,agents/main/sessions} | |
| # Copie du script d'entrée | |
| COPY --chown=node:node entrypoint.sh $HOME/entrypoint.sh | |
| RUN chmod +x $HOME/entrypoint.sh | |
| # Exposition du port HF | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/home/node/entrypoint.sh"] |