diff --git a/Dockerfile b/Dockerfile index 2c307c2760de585bfb64079d7e4edb36aa26b4a8..6ea7f2cb1d0377991c3e55c6d89df944709d0ffc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ -FROM alpine:3.10 +FROM alpine:3.15 RUN apk add --no-cache \ - fswatch + inotify-tools + +ADD src/entrypoint.sh /docker-entrypoint.sh -ENTRYPOINT ["fswatch"] +ENTRYPOINT ["/docker-entrypoint.sh"] diff --git a/src/entrypoint.sh b/src/entrypoint.sh new file mode 100755 index 0000000000000000000000000000000000000000..378fb57293e7b9f5862c63d212cfedcf0645a2fe --- /dev/null +++ b/src/entrypoint.sh @@ -0,0 +1,4 @@ +inotifywait -e close_write,moved_to,create -m $CONFIG_DIR | +while read -r directory events filename; do + killall -SIGHUP quasselcore +done