Skip to content

Instantly share code, notes, and snippets.

@pintux
Created October 13, 2015 13:57
Show Gist options
  • Save pintux/48690dac1c457d0af205 to your computer and use it in GitHub Desktop.
Save pintux/48690dac1c457d0af205 to your computer and use it in GitHub Desktop.
Dockerfile to build a NGINX image including a simple configuration file for NGINX server
FROM nginx
MAINTAINER Antonio Pintus
RUN mkdir /etc/nginx/logs/
RUN touch /etc/nginx/logs/error.log
# copy and use the customized conf file
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment