Skip to content

Instantly share code, notes, and snippets.

@masoo
Created July 21, 2016 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masoo/b022870cec2e81253cdfcc7a67d5e0a3 to your computer and use it in GitHub Desktop.
Save masoo/b022870cec2e81253cdfcc7a67d5e0a3 to your computer and use it in GitHub Desktop.
gitpub pages を作成できる Dockerfile
FROM masoo/ubuntu-rbenv-ruby:2.3.1
MAINTAINER FUNABARA Masao
RUN \
sudo apt-get install -y nodejs && \
zsh -c "curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -"
RUN \
zsh -c "source ~/.zshrc && gem install github-pages"
ONBUILD WORKDIR /home/docker/github-pages
ONBUILD COPY . .
ONBUILD RUN \
sudo chown -R docker:docker /home/docker/github-pages
EXPOSE 4000
ONBUILD CMD ["/usr/bin/zsh", "-c", "source ~/.zshrc && jekyll server -H 0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment