Created
August 14, 2016 19:39
-
-
Save hhariri/02f0803c5f99430aba93f890294b40d1 to your computer and use it in GitHub Desktop.
Jekyll
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
# Docker for Jekyll | |
FROM alpine:latest | |
MAINTAINER Hadi Hariri <[email protected]> | |
# Install base, Ruby, Headers, Jekyll, Export Path and Clean Up | |
RUN apk update && apk upgrade && apk add curl wget bash && \ | |
apk add ruby ruby-bundler ruby-dev ruby-irb ruby-rdoc libatomic readline readline-dev \ | |
libxml2 libxml2-dev libxslt libxslt-dev zlib-dev zlib \ | |
libffi-dev build-base git nodejs && \ | |
export PATH="/root/.rbenv/bin:$PATH" && \ | |
rm -rf /var/cache/apk/* && \ | |
# Install Jekyll and required gems | |
gem install jekyll redcarpet kramdown maruku rdiscount RedCloth liquid pygments.rb \ | |
jekyll-paginate jekyll-sass-converter |
Awesome, I'll take it for a spin later
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then I have a bash script that runs this:
docker run -v ~/hhariri.github.io:/tmp -p 4000:4000 hhariri/jekyll jekyll serve -s /tmp --host 0.0.0.0 --incremental