Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
jekyll deploy dockerfile
FROM ruby:latest
RUN mkdir /root/.ssh/
RUN touch /root/.ssh/known_hosts
RUN ssh-keyscan -T 60 >> /root/.ssh/known_hosts
COPY autodeploy /root/.ssh/
RUN curl -sL | bash -
RUN apt-get install --yes nodejs git
RUN ssh-agent bash -c 'ssh-add autodeploy; git clone /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
You can’t perform that action at this time.