Skip to content

Instantly share code, notes, and snippets.

@waja
Created January 25, 2016 13:35
Show Gist options
  • Save waja/fd40b69ac7db07093661 to your computer and use it in GitHub Desktop.
Save waja/fd40b69ac7db07093661 to your computer and use it in GitHub Desktop.
Example Dockerfile creating a simple nginx container
# 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