Skip to content

Instantly share code, notes, and snippets.

@taion809
Created October 5, 2013 14:31
Show Gist options
  • Save taion809/6841619 to your computer and use it in GitHub Desktop.
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 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