Spaces:
Runtime error
Runtime error
Download Dockerfile from txtorg/px: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/txtorg/px/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/txtorg/px/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/txtorg/px/resolve/main/Dockerfile
449 Bytes
| FROM node:20 | |
| # Install git | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Pre-install your npm packages (global app dependencies) | |
| RUN npm install cors express-rate-limit express axios bcrypt fs-extra mongodb jsonwebtoken node-cron dotenv crypto | |
| # Copy start script | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| # Ensure /app has full permissions | |
| RUN chmod -R 777 /app | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |