This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-16 13:40:29 +00:00
|
|
|
FROM openresty/openresty:1.19.9.1-focal
|
2021-01-08 12:47:30 +00:00
|
|
|
|
2022-03-31 10:02:31 +00:00
|
|
|
WORKDIR /
|
|
|
|
|
2022-04-21 12:22:50 +00:00
|
|
|
RUN apt-get update && apt-get --no-install-recommends install bc=1.07.1-2build1 && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
|
|
|
luarocks install lua-resty-http && \
|
|
|
|
luarocks install hasher
|
|
|
|
|
|
|
|
# reload nginx every 6 hours (for reloading certificates)
|
|
|
|
ENV NGINX_ENTRYPOINT_RELOAD_EVERY_X_HOURS 6
|
|
|
|
|
|
|
|
# copy entrypoint and entrypoint scripts
|
|
|
|
COPY docker/nginx/docker-entrypoint.sh /
|
|
|
|
COPY docker/nginx/docker-entrypoint.d /docker-entrypoint.d
|
|
|
|
|
|
|
|
# copy nginx configuration files and libraries
|
|
|
|
COPY docker/nginx/libs /etc/nginx/libs
|
|
|
|
COPY docker/nginx/conf.d /etc/nginx/conf.d
|
|
|
|
COPY docker/nginx/conf.d.templates /etc/nginx/templates
|
|
|
|
COPY docker/nginx/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
|
|
|
|
STOPSIGNAL SIGQUIT
|
|
|
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|