Spaces:
Sleeping
Sleeping
Download Dockerfile from maowu/PaperDrawing: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/spaces/maowu/PaperDrawing/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/maowu/PaperDrawing/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/maowu/PaperDrawing/resolve/main/Dockerfile
262 Bytes
| FROM node:18-alpine | |
| WORKDIR /app | |
| COPY package.json package-lock.json ./ | |
| RUN npm ci | |
| COPY . . | |
| RUN npm run build | |
| # Hugging Face Spaces 預設使用 7860 port | |
| EXPOSE 7860 | |
| # 使用 npx serve 啟動靜態檔案伺服器 | |
| CMD ["npx", "serve", "dist", "-l", "7860"] | |