Created
January 3, 2016 12:51
-
-
Save AdrienFromToulouse/48d10a4d59c90a12ce29 to your computer and use it in GitHub Desktop.
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
# Set nginx base image | |
FROM nginx | |
# File Author / Maintainer | |
MAINTAINER Adrien Desbiaux | |
COPY docker-entrypoint.sh / | |
ENTRYPOINT ["/docker-entrypoint.sh"] | |
# Copy custom configuration file from the current directory | |
COPY nginx.conf /etc/nginx/nginx.conf | |
VOLUME ["/etc/nginx/ssl", "/etc/nginx/psw"] | |
# Append "daemon off;" to the beginning of the configuration | |
# in order to avoid an exit of the container | |
RUN echo "daemon off;" >> /etc/nginx/nginx.conf | |
# Expose ports | |
EXPOSE 443 | |
# Define default command | |
CMD service nginx start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment