Skip to content

Instantly share code, notes, and snippets.

@codeasashu
Created February 21, 2018 06:56
Show Gist options
  • Select an option

  • Save codeasashu/73f246c8b6eb7e1a835bebc2e06bc1c9 to your computer and use it in GitHub Desktop.

Select an option

Save codeasashu/73f246c8b6eb7e1a835bebc2e06bc1c9 to your computer and use it in GitHub Desktop.
Github page jekyll dockerfile
FROM ruby:2.1
MAINTAINER graham@grahamc.com
RUN rm -rf site/Gemfile.lock
RUN apt-get update \
&& apt-get install -y \
node \
python-pygments \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/
RUN gem install \
github-pages \
jekyll \
jekyll-redirect-from \
kramdown \
rdiscount \
rouge
VOLUME /src
COPY site/ /src
EXPOSE 4000
WORKDIR /src
ENTRYPOINT ["jekyll"]
RUN jekyll build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment