Created
February 21, 2018 06:56
-
-
Save codeasashu/73f246c8b6eb7e1a835bebc2e06bc1c9 to your computer and use it in GitHub Desktop.
Github page jekyll dockerfile
This file contains hidden or 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: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