|
|
|
|
@ -10,8 +10,8 @@ ENV NGINX_VERSION="1.13.2" \ |
|
|
|
|
--pid-path=/var/run/nginx.pid \ |
|
|
|
|
--http-log-path=/var/log/nginx/access.log \ |
|
|
|
|
--error-log-path=/var/log/nginx/error.log \ |
|
|
|
|
--user=nginx \ |
|
|
|
|
--group=nginx \ |
|
|
|
|
--user=www-data \ |
|
|
|
|
--group=www-data \ |
|
|
|
|
--add-module=/tmp/modules/nginx_requestid-master" |
|
|
|
|
|
|
|
|
|
COPY requirements /opt/app/requirements |
|
|
|
|
@ -25,9 +25,6 @@ RUN apt-get update -y && \ |
|
|
|
|
make && \ |
|
|
|
|
apt-get clean && \ |
|
|
|
|
|
|
|
|
|
# Add nginx group and user |
|
|
|
|
addgroup -S nginx && \ |
|
|
|
|
adduser -S nginx -G nginx && \ |
|
|
|
|
# Download additional nginx modules |
|
|
|
|
mkdir -p /tmp/modules && \ |
|
|
|
|
cd /tmp/modules && \ |
|
|
|
|
|