Spaces:
Paused
Paused
Download Dockerfile from triflix/uploadtemporary: direct link, hf CLI and curl.
- Browser
- Download file 308 Bytes
-
https://huggingface.co/spaces/triflix/uploadtemporary/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/triflix/uploadtemporary/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/triflix/uploadtemporary/resolve/main/Dockerfile
308 Bytes
| # Use a lightweight Node image | |
| FROM node:20-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # Install a simple static server | |
| RUN npm install -g serve | |
| # Copy the built files | |
| COPY dist /app | |
| # Expose Hugging Face Space port | |
| EXPOSE 7860 | |
| # Command to serve the static site | |
| CMD ["serve", "-s", ".", "-l", "7860"] | |