Skip to content

Instantly share code, notes, and snippets.

@digen
Created May 10, 2015 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digen/e065ea86160f31a6f554 to your computer and use it in GitHub Desktop.
Save digen/e065ea86160f31a6f554 to your computer and use it in GitHub Desktop.
Octopress Dockerfile
FROM ubuntu:14.04.1
MAINTAINER digen <swapneel@brainattic.in>
# update OS
RUN apt-get update
RUN apt-get upgrade -y
# Install depndencies
RUN apt-get install -y ruby1.9.3 ruby-dev build-essential git openssh-server vim
RUN git clone http://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