From 550bdb2ba7f3bdc56aed1d97031ce5567323c5e6 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 17 Dec 2020 16:16:28 +0100 Subject: [PATCH] upgrade openresty distro and install luasocket --- docker-compose.yml | 4 +++- docker/nginx/Dockerfile | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 docker/nginx/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index b50a108f..e2365137 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -61,7 +61,9 @@ services: - nginx nginx: - image: openresty/openresty:1.15.8.3-2-xenial + build: + context: ./docker/nginx + dockerfile: Dockerfile container_name: nginx restart: unless-stopped logging: *default-logging diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile new file mode 100644 index 00000000..bba36f7b --- /dev/null +++ b/docker/nginx/Dockerfile @@ -0,0 +1,7 @@ +FROM openresty/openresty:1.19.3.1-2-bionic + +# RUN apt-get update -qq && apt-get install cron logrotate -qq +RUN luarocks install luasocket + +# CMD ["sh", "-c", "service cron start;", "/usr/local/openresty/bin/openresty -g daemon off;"] +CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]