Download Dockerfile from pycra/pi: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/pycra/pi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pycra/pi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pycra/pi/resolve/main/Dockerfile
357 Bytes
| # Use the official Node.js LTS image | |
| FROM node:18-alpine | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Install dependencies | |
| RUN npm install express cors axios node-cron | |
| # Copy the entire project into the container | |
| COPY . . | |
| # Expose the port (must match the Express server port) | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["node", "server.js"] |