diff --git a/Dockerfile b/Dockerfile index 06c3580..03e4edc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ RUN \ apt-get update && \ apt-get install -y nginx && \ rm -rf /var/lib/apt/lists/* && \ - echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \ chown -R www-data:www-data /var/lib/nginx # Define mountable directories. @@ -23,7 +22,7 @@ VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/v WORKDIR /etc/nginx # Define default command. -CMD ["nginx"] +CMD ["nginx", "-g", "daemon off;"] # Expose ports. EXPOSE 80