Created
          October 5, 2013 14:31 
        
      - 
      
- 
        Save taion809/6841619 to your computer and use it in GitHub Desktop. 
    Redstalker.com Docker file if using a single docker container for piecrust, nginx, and the static site.
  
        
  
    
      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
    
  
  
    
  | # This Dockerfile relies on johnsn/rs-nginx and johnsn/rs-piecrust | |
| # It is better to use a volume and then use a Docker container as a binary to generate the | |
| # static site vs inheriting multiple services | |
| FROM johnsn/rs-piecrust | |
| MAINTAINER Nicholas Johns "[email protected]" | |
| # Force updating ubuntu | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
| RUN apt-get update; apt-get upgrade -y | |
| # Setup files to be parsed by piecrust | |
| ADD . /srv/redstalker.com/ | |
| WORKDIR /srv/redstalker.com | |
| RUN /chef bake | |
| # Do it! | |
| ENTRYPOINT ["/usr/sbin/nginx"] | |
| CMD ["-p /etc/nginx"] | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment