Download Dockerfile from Ultimateking007587/puter-server-js: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/spaces/Ultimateking007587/puter-server-js/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ultimateking007587/puter-server-js/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ultimateking007587/puter-server-js/resolve/main/Dockerfile
448 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy application source | |
| COPY . . | |
| # Build frontend and backend | |
| RUN npm run build | |
| # Expose Hugging Face default port (7860) | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| # Start server | |
| CMD ["node", "dist/server.cjs"] |