FROM openresty/openresty:bookworm-buildpack WORKDIR /opt/app ARG version=3.7.0.1 ARG pkgname=pandoc-$version-1-amd64.deb ARG pkgurl=https://github.com/jgm/pandoc/releases/download/$version/$pkgname RUN apt-get update && apt-get install -y \ python3-pygments lua-inotify wget && \ wget -q -O $pkgname $pkgurl && dpkg -i $pkgname && rm $pkgname RUN luarocks install sitegen # needed for sitegen watcher RUN luarocks install inotify INOTIFY_INCDIR=/usr/include/x86_64-linux-gnu/ # needed for testing RUN luarocks install busted RUN luarocks install luajit-curl RUN luarocks install luasocket # needed for testing nginx reverse proxy CMD ["sh", "-c", "openresty -p `pwd` -g 'daemon off;'"]