2025-04-27 17:20:02 +01:00
|
|
|
FROM openresty/openresty:alpine-fat
|
|
|
|
|
|
|
|
RUN /usr/local/openresty/luajit/bin/luarocks install lua-resty-http
|
|
|
|
RUN /usr/local/openresty/luajit/bin/luarocks install lua-resty-cookie
|
|
|
|
RUN /usr/local/openresty/luajit/bin/luarocks install lua-resty-iputils
|
|
|
|
|
2025-05-03 15:21:08 +01:00
|
|
|
RUN apk add --no-cache ca-certificates certbot openssl
|
2025-04-27 17:52:40 +01:00
|
|
|
RUN /usr/local/openresty/luajit/bin/luarocks install lua-resty-auto-ssl
|
|
|
|
|
|
|
|
RUN mkdir /etc/resty-auto-ssl && chown -R nobody /etc/resty-auto-ssl
|
|
|
|
|
|
|
|
RUN openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
|
|
|
|
-subj '/CN=fallback.invalid' \
|
|
|
|
-keyout /etc/ssl/resty-auto-ssl-fallback.key \
|
|
|
|
-out /etc/ssl/resty-auto-ssl-fallback.crt
|
|
|
|
|
2025-04-27 17:20:02 +01:00
|
|
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
2025-05-03 15:49:06 +01:00
|
|
|
COPY default.main /etc/nginx/conf.d/default.main
|
2025-04-27 17:20:02 +01:00
|
|
|
COPY lua/* /opt/sitelen-tu/
|