diff --git a/Dockerfile b/Dockerfile index e169150..df4447d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -235,7 +235,11 @@ RUN apt-get clean \ ENV LIBVA_DRIVER_NAME=iHD -USER user +# In order for ffmpeg to access the video input, 'user' needs to have +# access to the hardware. Not sure how to do that across different +# OS releases, so setting user to 'root' for now. +USER root + WORKDIR /home/user diff --git a/Dockerfile.solution b/Dockerfile.solution index 511220c..902aee8 100644 --- a/Dockerfile.solution +++ b/Dockerfile.solution @@ -69,6 +69,10 @@ RUN apt-get clean \ ENV LIBVA_DRIVER_NAME=iHD -USER user +# In order for ffmpeg to access the video input, 'user' needs to have +# access to the hardware. Not sure how to do that across different +# OS releases, so setting user to 'root' for now. +USER root + WORKDIR /home/user