Spaces:
Sleeping
Sleeping
File size: 439 Bytes
663a8b5 a725c83 663a8b5 a725c83 663a8b5 a725c83 663a8b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM node:22-slim
# Set up a working directory
WORKDIR /app
# Copy dependency files
COPY package*.json ./
# Install PeerJS
RUN npm install --omit=dev
# Run as non-root user
USER node
# Expose port 7860 (Hugging Face default)
EXPOSE 7860
# Start PeerJS on root path "/" with proxy support and timeouts
CMD ["npx", "peerjs", "--port", "7860", "--path", "/", "--proxied", "true", "--expire_timeout", "5000", "--alive_timeout", "60000"]
|