Skip to content

Instantly share code, notes, and snippets.

@taion809
Created October 5, 2013 14:26
Show Gist options
  • Save taion809/6841554 to your computer and use it in GitHub Desktop.
Save taion809/6841554 to your computer and use it in GitHub Desktop.
Piecrust Dockerfile
# The purpose of this Dockerfile is to serve as the base for a static website, in this case redstalker.com
# There are better ways to do this
# For example, using a volume and only running the redstalker.com Dockerfile in the case of update.
FROM johnsn/rs-nginx
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; apt-get install -y wget python-software-properties
#Add PPA
RUN add-apt-repository ppa:ondrej/php5
RUN wget -qO - http://nginx.org/keys/nginx_signing.key | apt-key add -
RUN apt-get update; apt-get install -y php5-cli
RUN perl -pi -e "s#;date.timezone =#date.timezone = Asia/Tokyo#g" /etc/php5/cli/php.ini
# Download piecrust
RUN wget http://backend.bolt80.com/piecrust/install -O - | php -- -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment