Skip to content

Instantly share code, notes, and snippets.

@shrikrishnaholla
Last active January 3, 2016 02:09
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shrikrishnaholla/8393968 to your computer and use it in GitHub Desktop.
Save shrikrishnaholla/8393968 to your computer and use it in GitHub Desktop.
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