Created
March 27, 2017 23:00
-
-
Save codeasashu/c749a11fe2d427653cfb30c114f13aa0 to your computer and use it in GitHub Desktop.
Some good dockerfiles. Files are appended by their project stack
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 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 | |
| #Then run in cmd `sudo docker run -v "$P/site:/src" -p 4000:4000 ffe347c35cf0 serve -H 0.0.0.` and open 0.0.0.0:4000 in browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment