При сборке контейнера в логах видно ошибку:
Контейнер собирается, но из за отсутствия модуля не может запуститься
# get image from...
FROM debian:9
# maintainer
LABEL maintainer="paffin"
# updates
RUN apt-get -y update
RUN apt-get -y upgrade
# install some utilites
RUN apt-get install -y wget build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev
WORKDIR /usr/local/src/
# modules
RUN wget http://nginx.org/download/nginx-1.19.8.tar.gz && tar -zxvf nginx-1.19.8.tar.gz
RUN wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz && tar -zxvf LuaJIT-2.0.5.tar.gz
RUN wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gz && tar -zxvf v0.3.0.tar.gz
RUN wget https://github.com/openresty/lua-nginx-module/archive/v0.10.9rc7.tar.gz && tar -zxvf v0.10.9rc7.tar.gz
RUN cd nginx-1.19.8 && export LUAJIT_LIB=/usr/local/LuaJIT/lib && export LUAJIT_INC=/usr/local/LuaJIT/include/luajit-2.0
RUN cd LuaJIT-2.0.5 && make -j2 && make install
RUN cd nginx-1.19.8 && ./configure --sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--user=www --group=www \
--prefix=/usr/local/nginx \
--add-module=/usr/local/src/ngx_devel_kit-0.3.0 \
--with-ld-opt='-Wl,-rpath,/usr/local/LuaJIT/lib' \
--add-module=/usr/local/src/lua-nginx-module-0.10.9rc7
RUN cd nginx-1.19.8 && make && make install
EXPOSE 80 22 443
CMD [ "nginx", "-g", "daemon off;" ]