keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.68k stars 235 forks source link

docker multi-stage build #93

Closed eremid closed 2 years ago

eremid commented 2 years ago

Hello,

Here is a multi-stage Dockerfile. It reduce the container image to ~100MB. Tested on Rpi 4 and Rpi 2.

On Rpi 2, I've got this issue (with this image and yours) :

Fatal Python error: init_interp_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted

Current thread 0x76f69390 (most recent call first):
<no Python frame>

Solved with :

docker run --security-opt seccomp=unconfined [...]

Thanks for this proxy !

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

keshavdv commented 2 years ago

I've switched over to an alpine image so hopefully the reduced size is enough to unblock you.