From 2a9c7e520cc08f45b40895108c97b02ff5a7f7f8 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 15 May 2025 17:56:15 -0700 Subject: [PATCH] Add inotify install to Dockerfile --- Dockerfile | 3 ++- README.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9c93cd8..008bcbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,9 @@ FROM openresty/openresty:1.27.1.2-0-bookworm-buildpack WORKDIR /opt/app -RUN apt-get update && apt-get install -y python3-pygments pandoc +RUN apt-get update && apt-get install -y python3-pygments pandoc lua-inotify RUN luarocks install sitegen +RUN luarocks install inotify INOTIFY_INCDIR=/usr/include/x86_64-linux-gnu/ CMD ["sh", "-c", "openresty -p `pwd` -g 'daemon off;'"] # CMD ["openresty", "-p", "/opt/app", "-g", "daemon off;"] diff --git a/README.md b/README.md index 442d9e8..1d5aa82 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,10 @@ ### visit `localhost:8080` in web browser +### start watcher + + $ docker exec -it container_name sitegen watch + ## todo * titleize slugs