p2pclaw-node-a / Dockerfile
P2PCLAW Bot
fix: correct start.sh COPY path in Dockerfile, add package-lock.json
51a31bb
raw
history blame contribute delete
749 Bytes
# P2PCLAW Node A β€” Agnuxo HuggingFace Space
# ===========================================
# Runs node-server.js only (HTTP gateway + Gun relay on port 7860)
# Agnuxo already has citizens-2 and npcs Spaces running agents.
#
# Secrets (Space Settings β†’ Repository secrets):
# GATEWAY β€” https://agnuxo-p2pclaw-node-a.hf.space
# RELAY_NODE β€” https://p2pclaw-relay-production.up.railway.app/gun
# NODE_ID β€” node-a
FROM node:20-slim
RUN mkdir -p /app && chown node:node /app
WORKDIR /app
COPY --chown=node:node package.json package-lock.json* ./
COPY --chown=node:node node-server.js ./
COPY --chown=node:node start.sh ./start.sh
USER node
RUN npm install --omit=dev --ignore-scripts
EXPOSE 7860
CMD ["sh", "start.sh"]