Skip to content

Instantly share code, notes, and snippets.

@dalanmiller
Created December 16, 2015 17:32
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 dalanmiller/dffb99740e26795224ed to your computer and use it in GitHub Desktop.
Save dalanmiller/dffb99740e26795224ed to your computer and use it in GitHub Desktop.
jekyll deploy dockerfile
FROM ruby:latest
RUN mkdir /root/.ssh/
RUN touch /root/.ssh/known_hosts
RUN ssh-keyscan -T 60 github.com >> /root/.ssh/known_hosts
COPY autodeploy /root/.ssh/
RUN curl -sL https://deb.nodesource.com/setup_5.x | bash -
RUN apt-get install --yes nodejs git
RUN ssh-agent bash -c 'ssh-add autodeploy; git clone https://github.com/twbs/bootstrap /root/jekyll'
WORKDIR /root/jekyll
# RUN npm install
RUN gem install jekyll rouge
CMD jekyll serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment