Spaces:
Sleeping
Sleeping
Download Dockerfile from underrate/flight-simulator: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/underrate/flight-simulator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/underrate/flight-simulator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/underrate/flight-simulator/resolve/main/Dockerfile
381 Bytes
| FROM node:20-alpine | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy source code and build | |
| COPY . . | |
| RUN npm run build | |
| # Install a simple static file server | |
| RUN npm install -g serve | |
| # Expose port required by Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Serve the 'dist' directory on port 7860 | |
| CMD ["serve", "-s", "dist", "-l", "7860"] | |