Download Dockerfile from broadfield-dev/stack-overflow-game: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/spaces/broadfield-dev/stack-overflow-game/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/broadfield-dev/stack-overflow-game/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/broadfield-dev/stack-overflow-game/resolve/main/Dockerfile
289 Bytes
| FROM node:20-alpine | |
| WORKDIR /app | |
| # Copy package files first → better caching | |
| COPY package*.json ./ | |
| RUN npm ci | |
| # Copy everything else | |
| COPY . . | |
| # Build | |
| RUN npm run build | |
| # Serve with a tiny static server | |
| RUN npm install -g serve | |
| EXPOSE 7860 | |
| CMD ["serve", "-s", "dist", "-l", "7860"] |