diff --git a/Dockerfile b/Dockerfile index e807776..0dc4b49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,9 @@ LABEL version="${VERSION}" \ COPY inotify.sh /inotify.sh -RUN chmod +x /inotify.sh +RUN mkdir /out \ + chmod +x /inotify.sh \ + chown -R nobody /out RUN apk --no-cache add \ inotify-tools \ @@ -26,7 +28,6 @@ RUN apk --no-cache add \ USER nobody ENV CHUNK_SIZE=1048576 \ - WATCH_PATH=/opt/livekit-egress \ UPLOAD_URL=http://localhost:8000/recording/upload \ AUTH_TOKEN=verySecretToken diff --git a/inotify.sh b/inotify.sh index e2b1d33..eb568e3 100644 --- a/inotify.sh +++ b/inotify.sh @@ -1,6 +1,6 @@ #!/bin/sh -inotifywait -m "$WATCH_PATH" -e close_write | +inotifywait -m /out -e close_write | while read PATH ACTION FILE; do if [[ "${FILE}" == *.mp4 ]]