Download Dockerfile from incname/web: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/spaces/incname/web/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/incname/web/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/incname/web/resolve/main/Dockerfile
495 Bytes
| # Use Node to build and run the app | |
| FROM node:22-slim | |
| WORKDIR /app | |
| # Copy configuration files first to optimize building | |
| COPY package*.json ./ | |
| # Install the app dependencies | |
| RUN npm install | |
| # Copy all the remaining project files | |
| COPY . . | |
| # Build the Lovable frontend | |
| RUN npm run build | |
| # Expose the precise port Hugging Face requires | |
| EXPOSE 7860 | |
| # Run a preview server bound to Hugging Face's network configuration | |
| CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "7860"] |