Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dockerfile to set up octopress. Once you spin up the container, you need to continue from http://octopress.org/docs/deploying/. You can either attach to the container, or ssh into it
FROM ubuntu
MAINTAINER shrikrishna <shrikrishna.holla@gmail.com>
# update OS
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
# Install depndencies
RUN apt-get install -y ruby1.9.1-dev build-essential git openssh-server vim
RUN git clone git://github.com/imathis/octopress.git /srv/octopress
RUN mkdir /var/run/sshd
RUN echo "root:octo"|chpasswd;
WORKDIR /srv/octopress
# Install Octopress dependencies
RUN gem install bundler
RUN bundle install
# Install the default theme
RUN rake install
# Expose default Octopress port
EXPOSE 4000
ENTRYPOINT ["/usr/sbin/sshd"]
CMD ["-D"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment