jar / Dockerfile
vish85521's picture
Create Dockerfile
697717b verified
Raw
History Blame Contribute Delete
504 Bytes
FROM ghcr.io/openclaw/openclaw:latest
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# HF Spaces runs as root, fix permissions
RUN mkdir -p /home/node/.openclaw && chown -R node:node /home/node/.openclaw
COPY openclaw.json /home/node/.openclaw/openclaw.json
RUN chown node:node /home/node/.openclaw/openclaw.json
USER node
# HF Spaces requires port 7860
EXPOSE 7860
CMD ["node", "/app/dist/index.js", "gateway"]