Download Dockerfile from ronylu/iWeb: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/ronylu/iWeb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ronylu/iWeb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ronylu/iWeb/resolve/main/Dockerfile
443 Bytes
| # ---- Build stage ---- | |
| FROM node:20-alpine AS build | |
| WORKDIR /app | |
| COPY package.json package-lock.json* ./ | |
| # HF builder may set NODE_ENV=production; force dev deps for building | |
| RUN npm install --include=dev | |
| COPY . . | |
| RUN npm run build | |
| # ---- Runtime stage ---- | |
| FROM node:20-alpine | |
| WORKDIR /app | |
| # Install a tiny static server | |
| RUN npm install -g serve | |
| COPY --from=build /app/dist ./dist | |
| EXPOSE 7860 | |
| CMD ["serve", "-s", "dist", "-l", "7860"] | |