Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

25 linhas
729B

  1. FROM debian:stretch
  2. #ENV NGINX_VERSION 1.2.1-2.2+wheezy3
  3. # update and install nginx
  4. RUN apt-get update && \
  5. apt-get install -y nginx && \
  6. #=${NGINX_VERSION}
  7. apt-get clean
  8. # trim the original configuration for our little raspberry
  9. RUN sed -i "s/worker_processes 4;/worker_processes 2;/g" /etc/nginx/nginx.conf
  10. RUN sed -i "s/worker_connections 768;/worker_connections 256;/g" /etc/nginx/nginx.conf
  11. RUN echo "daemon off;" >> /etc/nginx/nginx.conf
  12. # like in the official nginx-image - forward request and error logs to docker log collector
  13. RUN ln -sf /dev/stdout /var/log/nginx/access.log
  14. RUN ln -sf /dev/stderr /var/log/nginx/error.log
  15. VOLUME ["/var/cache/nginx"]
  16. # Ports to be exposed
  17. EXPOSE 80 443
  18. CMD ["nginx"]