horgh / videostreamer

Stream video (e.g. RTSP) to an HTML5 video element (MP4)
GNU General Public License v3.0
268 stars 61 forks source link

Docker image #13

Open kubitre opened 4 years ago

kubitre commented 4 years ago

Can u dockerize this app?

kubitre commented 4 years ago

@horgh

horgh commented 4 years ago

I added a Dockerfile. Let me know if you see issues with it!

kubitre commented 4 years ago

it turned out to be a very large image(~500mb). Maybe look in the base image will be of scratch or maybe alpine with a fully static binary?

kubitre commented 4 years ago

I tried to build a static binary, though not yet successfully.

horgh commented 4 years ago

Right, distroless's would probably be ideal. The problem as you probably found is the ffmpeg libraries. If one can figure out the libraries to copy into the runtime image then it should work, but I'm not sure an easy way to do that. I'd probably accept a PR!