Add inotify install to Dockerfile

This commit is contained in:
Catalin Constantin Mititiuc 2025-05-15 17:56:15 -07:00
parent f6d8a1d7d8
commit 2a9c7e520c
2 changed files with 6 additions and 1 deletions

View File

@ -2,8 +2,9 @@ FROM openresty/openresty:1.27.1.2-0-bookworm-buildpack
WORKDIR /opt/app 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 sitegen
RUN luarocks install inotify INOTIFY_INCDIR=/usr/include/x86_64-linux-gnu/
CMD ["sh", "-c", "openresty -p `pwd` -g 'daemon off;'"] CMD ["sh", "-c", "openresty -p `pwd` -g 'daemon off;'"]
# CMD ["openresty", "-p", "/opt/app", "-g", "daemon off;"] # CMD ["openresty", "-p", "/opt/app", "-g", "daemon off;"]

View File

@ -58,6 +58,10 @@
### visit `localhost:8080` in web browser ### visit `localhost:8080` in web browser
### start watcher
$ docker exec -it container_name sitegen watch
## todo ## todo
* titleize slugs * titleize slugs