Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dockerfile to set up octopress. Once you spin up the container, you need to continue from You can either attach to the container, or ssh into it
FROM ubuntu
MAINTAINER shrikrishna <>
# update OS
RUN echo "deb 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:// /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
ENTRYPOINT ["/usr/sbin/sshd"]
CMD ["-D"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment