# our chosen base image
FROM debian:10-slim AS builder
-ENV NO_LUA_JIT="s390x aarch64"
+ENV NO_LUA_JIT="s390x arm64"
# TODO: make sure /source looks roughly the same from git or tar
# simplify repeated -C calls with SUBDIRS?
RUN mkdir /build && \
- LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+ LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \
./configure \
--with-lua=${LUAVER} \
--sysconfdir=/etc/powerdns \
# our chosen base image
FROM debian:10-slim AS builder
-ENV NO_LUA_JIT="s390x aarch64"
+ENV NO_LUA_JIT="s390x arm64"
# TODO: make sure /source looks roughly the same from git or tar
BUILDER_MODULES=dnsdist autoreconf -vfi
RUN mkdir /build && \
- LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+ LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \
./configure \
--with-lua=${LUAVER} \
LDFLAGS=-rdynamic \
# Builder
FROM debian:10-slim AS builder
-ENV NO_LUA_JIT="s390x aarch64"
+ENV NO_LUA_JIT="s390x arm64"
# Reusable layer for base update
RUN apt-get update && apt-get -y dist-upgrade && apt-get clean
BUILDER_MODULES=recursor autoreconf -vfi
RUN mkdir /build && \
- LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+ LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \
./configure \
--with-lua=${LUAVER} \
LDFLAGS=-rdynamic \