15 lines
463 B
Docker
15 lines
463 B
Docker
FROM openresty/openresty:bookworm-buildpack
|
|
|
|
WORKDIR /opt/app
|
|
|
|
RUN luarocks install moonscript
|
|
RUN luarocks install busted
|
|
RUN luarocks install luajit-curl
|
|
RUN luarocks install luasocket # needed for testing nginx reverse proxy
|
|
|
|
RUN openssl req -x509 -newkey rsa:4096 -nodes \
|
|
-keyout /etc/ssl/private/domain.abc.pem \
|
|
-out /etc/ssl/certs/domain.abc.pem \
|
|
-sha256 -days 365 -subj '/CN=domain.abc' \
|
|
-addext "subjectAltName=DNS:domain.abc"
|