Spaces:
Sleeping
Sleeping
Download Dockerfile from HyperAgents/Peerjs: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/spaces/HyperAgents/Peerjs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HyperAgents/Peerjs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HyperAgents/Peerjs/resolve/main/Dockerfile
439 Bytes
| 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"] | |