Download Dockerfile from Khunay/YouSave: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/spaces/Khunay/YouSave/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Khunay/YouSave/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Khunay/YouSave/resolve/main/Dockerfile
565 Bytes
| FROM node:18-slim | |
| # 1. Pastikan lingkungan Linux memiliki ffmpeg murni untuk penggabungan video & audio | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| curl \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2. Ambil berkas biner Linux murni langsung dari dokumentasi #release-files GitHub | |
| RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux -o /usr/local/bin/yt-dlp \ | |
| && chmod a+rx /usr/local/bin/yt-dlp | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| CMD ["npm", "start"] |