# simplify repeated -C calls with SUBDIRS?
RUN mkdir /build && \
- /bin/bash -c ./configure \
- --with-lua=$([[ "${NO_LUA_JIT}" == *"$(uname -m)"* ]] && echo "lua5.3" || echo "luajit") \
+ LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+ ./configure \
+ --with-lua=${LUAVER} \
--sysconfdir=/etc/powerdns \
--enable-option-checking=fatal \
--with-dynmodules='bind geoip gmysql godbc gpgsql gsqlite3 ldap lmdb lua2 pipe random remote tinydns' \
BUILDER_MODULES=dnsdist autoreconf -vfi
RUN mkdir /build && \
- /bin/bash -c ./configure \
- --with-lua=$([[ "${NO_LUA_JIT}" == *"$(uname -m)"* ]] && echo "lua5.3" || echo "luajit") \
+ LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+ ./configure \
+ --with-lua=${LUAVER} \
LDFLAGS=-rdynamic \
--sysconfdir=/etc/dnsdist \
--enable-option-checking=fatal \
BUILDER_MODULES=recursor autoreconf -vfi
RUN mkdir /build && \
- /bin/bash -c ./configure \
- --with-lua=$([[ "${NO_LUA_JIT}" == *"$(uname -m)"* ]] && echo "lua5.3" || echo "luajit") \
+ LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+ ./configure \
+ --with-lua=${LUAVER} \
LDFLAGS=-rdynamic \
--sysconfdir=/etc/powerdns \
--enable-option-checking=fatal && \