Spaces:
Sleeping
Sleeping
Download Dockerfile from ColdSlim/Farm2Market: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/spaces/ColdSlim/Farm2Market/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ColdSlim/Farm2Market/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ColdSlim/Farm2Market/resolve/main/Dockerfile
368 Bytes
| FROM nginx:1.27-alpine AS runtime | |
| # Serve SPA from port 7860 (Hugging Face Spaces default for Docker apps) | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| COPY dist /usr/share/nginx/html | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ | |
| CMD wget -q -O /dev/null http://127.0.0.1:7860/ || exit 1 | |
| CMD ["nginx", "-g", "daemon off;"] | |