Spaces:
Runtime error
Runtime error
Download Dockerfile from AAAdAFADF/Auto-Subtitle-Generator: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/AAAdAFADF/Auto-Subtitle-Generator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AAAdAFADF/Auto-Subtitle-Generator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AAAdAFADF/Auto-Subtitle-Generator/resolve/main/Dockerfile
296 Bytes
| FROM node:18-bullseye-slim | |
| WORKDIR /app | |
| # 安裝 ffmpeg (Whisper 必須) | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| # 建立上傳資料夾 | |
| RUN mkdir -p uploads | |
| # Hugging Face 預設使用 7860 port | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] | |