fix directory
This commit is contained in:
parent
a451fa8306
commit
af3eb676f1
2 changed files with 4 additions and 3 deletions
|
@ -16,7 +16,9 @@ LABEL version="${VERSION}" \
|
||||||
|
|
||||||
COPY inotify.sh /inotify.sh
|
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 \
|
RUN apk --no-cache add \
|
||||||
inotify-tools \
|
inotify-tools \
|
||||||
|
@ -26,7 +28,6 @@ RUN apk --no-cache add \
|
||||||
USER nobody
|
USER nobody
|
||||||
|
|
||||||
ENV CHUNK_SIZE=1048576 \
|
ENV CHUNK_SIZE=1048576 \
|
||||||
WATCH_PATH=/opt/livekit-egress \
|
|
||||||
UPLOAD_URL=http://localhost:8000/recording/upload \
|
UPLOAD_URL=http://localhost:8000/recording/upload \
|
||||||
AUTH_TOKEN=verySecretToken
|
AUTH_TOKEN=verySecretToken
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
inotifywait -m "$WATCH_PATH" -e close_write |
|
inotifywait -m /out -e close_write |
|
||||||
while read PATH ACTION FILE; do
|
while read PATH ACTION FILE; do
|
||||||
|
|
||||||
if [[ "${FILE}" == *.mp4 ]]
|
if [[ "${FILE}" == *.mp4 ]]
|
||||||
|
|
Loading…
Add table
Reference in a new issue