Skip to content

Commit

Permalink
Merge branch 'master' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
janetkuo committed Dec 27, 2016
2 parents f61fb9f + 4d42645 commit 5ab8e8f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
21 changes: 17 additions & 4 deletions staging-container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
FROM starefossen/ruby-node:2-4
FROM alpine:3.3

RUN gem install github-pages
RUN apk add --no-cache \
build-base \
ca-certificates \
libffi-dev \
nodejs \
ruby-dev \
ruby-nokogiri \
zlib-dev

RUN gem install \
bundler \
github-pages \
io-console \
--no-rdoc --no-ri

VOLUME /k8sdocs

EXPOSE 4000

COPY start.sh /start.sh
WORKDIR /k8sdocs

CMD bundle && jekyll clean && jekyll serve -H 0.0.0.0 -P 4000

CMD [ "/start.sh" ]
# For instructions, see http://kubernetes.io/editdocs/
7 changes: 7 additions & 0 deletions staging-container/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -e
set -x

bundle
bundle exec jekyll clean
bundle exec jekyll serve -H 0.0.0.0 -P 4000

0 comments on commit 5ab8e8f

Please sign in to comment.