Merge pull request #581 from NebulousLabs/upgrade-openresty

upgrade openresty image to ubuntu 18
This commit is contained in:
Ivaylo Novakov 2021-01-08 14:04:40 +01:00 committed by GitHub
commit b63691e54c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -61,7 +61,9 @@ services:
- nginx - nginx
nginx: nginx:
image: openresty/openresty:1.15.8.3-2-xenial build:
context: ./docker/nginx
dockerfile: Dockerfile
container_name: nginx container_name: nginx
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging

7
docker/nginx/Dockerfile Normal file
View File

@ -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;"]