Created
January 25, 2016 13:35
-
-
Save waja/fd40b69ac7db07093661 to your computer and use it in GitHub Desktop.
Example Dockerfile creating a simple nginx container
This file contains 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
# Pull base image | |
FROM debian:latest | |
# Dockerfile Maintainer | |
MAINTAINER Jan Wagner "waja@cyconet.org" | |
# Install nginx and adjust nginx config to stay in foreground | |
RUN apt-get update && apt-get install --no-install-recommends -y nginx; \ | |
echo "daemon off;" >> /etc/nginx/nginx.conf | |
# Expose HTTP | |
EXPOSE 80 | |
# Start nginx | |
CMD ["/usr/sbin/nginx"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment