Created
October 3, 2017 09:16
-
-
Save haikyuu/2cea3ae53ea544b1f6c3592ec5a66e01 to your computer and use it in GitHub Desktop.
nginx Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
MAINTAINER Abdellah Alaoui | |
RUN apt-get update && apt-get install -y nginx \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | |
&& echo "daemon off;" >> /etc/nginx/nginx.conf | |
#override default nginx config | |
#requires default to be in Dockerfile dir | |
#ADD default /etc/nginx/sites-available/default | |
# forward request and error logs to docker log collector | |
RUN ln -sf /dev/stdout /var/log/nginx/access.log \ | |
&& ln -sf /dev/stderr /var/log/nginx/error.log | |
CMD ["nginx"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment