Skip to content

Instantly share code, notes, and snippets.

@masoo
Created Jul 21, 2016
Embed
What would you like to do?
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