Created
December 16, 2015 17:32
-
-
Save dalanmiller/dffb99740e26795224ed to your computer and use it in GitHub Desktop.
jekyll deploy dockerfile
This file contains 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 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