Download Dockerfile from devstok/brottt: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/spaces/devstok/brottt/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/devstok/brottt/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/devstok/brottt/resolve/main/Dockerfile
517 Bytes
| # Gunakan image dasar yang ringan | |
| FROM jrottenberg/ffmpeg:4.4-ubuntu | |
| # Set working directory di dalam container | |
| WORKDIR /app | |
| # Salin file video ke dalam container | |
| COPY cafe.mp4 ./cafe.mp4 | |
| # Ekspose port 7860 (jika Anda ingin menambahkan antarmuka web di masa depan) | |
| EXPOSE 7860 | |
| # Jalankan perintah FFmpeg untuk streaming | |
| CMD ["ffmpeg", "-stream_loop", "-1", "-re", "-i", "cafe.mp4", "-c", "copy", "-f", "flv", "-fflags", "nobuffer", "-flags", "low_delay", "rtmp://a.rtmp.youtube.com/live2/0k4y-sc3r-y5sx-kvb-bsa"] |