diff --git a/mod/recordings/Dockerfile b/mod/recordings/Dockerfile index 4a1485d..e7f2e13 100644 --- a/mod/recordings/Dockerfile +++ b/mod/recordings/Dockerfile @@ -75,10 +75,17 @@ RUN cd /usr/bin \ # create user # the ID should match the one creating the files in `core` RUN groupadd -g 998 bigbluebutton && useradd -m -u 998 -g bigbluebutton bigbluebutton +# change owner +# https://github.com/alangecker/bigbluebutton-docker/issues/63 +RUN chown -R 998:998 /usr/local/bigbluebutton /var/log/bigbluebutton COPY bigbluebutton.yml /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml.tmpl ADD log-collector.py /log-collector.py ADD entrypoint.sh /entrypoint.sh + +# change user before entrypoint +USER bigbluebutton + ENTRYPOINT dockerize \ -template /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml.tmpl:/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml \ /entrypoint.sh \ No newline at end of file