Add lua-unbound

Mon, 22 Nov 2021 10:39:54 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 22 Nov 2021 10:39:54 +0000
changeset 1
ab05314b412c
parent 0
6279a7d40ae7
child 2
8e14bb7f77a2

Add lua-unbound

Dockerfile file | annotate | diff | comparison | revisions
--- a/Dockerfile	Tue Mar 09 12:16:56 2021 +0000
+++ b/Dockerfile	Mon Nov 22 10:39:54 2021 +0000
@@ -9,6 +9,7 @@
         liblua5.2-dev \
         libidn11-dev \
         libssl-dev \
+        libunbound-dev \
         build-essential \
     && rm -rf /var/lib/apt/lists/*
 
@@ -21,6 +22,11 @@
 
 ADD src/web/ util/
 
+ADD https://code.zash.se/dl/luaunbound/luaunbound-0.5.tar.gz ./luaunbound-0.5.tar.gz
+
+RUN tar -xzf luaunbound-0.5.tar.gz \
+ && make -C luaunbound-0.5
+
 ############################
 FROM debian:buster-slim
 
@@ -36,10 +42,12 @@
         libidn11 \
         lua-dbi-postgresql \
         lua-scrypt \
+        libunbound8 \
     && rm -rf /var/lib/apt/lists/*
 
 COPY --from=build /tmp/build/util /usr/local/lib/lua-web-app/util
 COPY --from=build /tmp/build/net /usr/local/lib/lua-web-app/net
+COPY --from=build /tmp/build/luaunbound-0.5/lunbound.so /usr/local/lib/lua/5.2/lunbound.so
 
 ENV LUA_WEB_APP_FRAMEWORK /usr/local/lib/lua-web-app
 

mercurial