Last active
January 3, 2016 02:09
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER shrikrishna <[email protected]> | |
# 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