Skip to content

Instantly share code, notes, and snippets.

@namuan
Created November 22, 2014 12:54
Show Gist options
  • Save namuan/0ffd6e06fefb71630d29 to your computer and use it in GitHub Desktop.
Save namuan/0ffd6e06fefb71630d29 to your computer and use it in GitHub Desktop.
Carte Jekyll Dockerfile
FROM ubuntu:14.04
# From http://maximeheckel.com/blog/2014/07/05/build-jekyll-blog-docker/
MAINTAINER Nauman Leghari
RUN apt-get update
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN apt-get -y install make g++ python git ruby ruby-dev node python-pygments \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/
#Do not forget to install your markdown converter gem
#( e.g. kramdown or rdisount)
RUN gem install bundler therubyracer jekyll github-pages jekyll jekyll-redirect-from kramdown rdiscount rouge
#Download your jekyll website repository from github
RUN git clone https://github.com/devo-ps/carte.git
VOLUME /src
#Expose the default port from jekyll
EXPOSE 4000
#Set the default workdir
WORKDIR /carte
#Set the default command to execute at launch
# ENTRYPOINT ["jekyll"]
# Custom Shell script -> Update from github and restart jekyll
CMD ["jekyll", "serve", "--host", "0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment