Skip to content

Instantly share code, notes, and snippets.

@codeasashu
Created March 27, 2017 23:00
Show Gist options
  • Select an option

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

Select an option

Save codeasashu/c749a11fe2d427653cfb30c114f13aa0 to your computer and use it in GitHub Desktop.
Some good dockerfiles. Files are appended by their project stack
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