From 8f613118626bb3a4e0aa94eae1078ec391a47601 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Tue, 4 Oct 2016 00:26:09 -0700 Subject: [PATCH] Dockerfile fix for autobuild --- Dockerfile | 12 ++++-------- _config.yml | 4 +++- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 798b153064..4fab0d01a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,7 @@ -FROM starefossen/ruby-node:2-4 +FROM starefossen/github-pages:onbuild -RUN git clone https://www.github.com/docker/docker.github.io docs +ONBUILD RUN git clone https://www.github.com/docker/docker.github.io docs -RUN gem install --no-document github-pages +ONBUILD WORKDIR docs -EXPOSE 4000 - -EXPOSE 4000 - -CMD jekyll serve --source docs -d docs/_site -H 0.0.0.0 -P 4000 +ONBUILD COPY . /usr/src/app diff --git a/_config.yml b/_config.yml index 65d1b11183..80554d2b17 100644 --- a/_config.yml +++ b/_config.yml @@ -9,7 +9,9 @@ incremental: true permalink: pretty safe: false lsi: false -exclude: [vendor, bin] +exclude: + - vendor + - bin gems: - jekyll-redirect-from