diff options
| author | Veikka Kähkönen <insiding@gmail.com> | 2017-10-17 20:46:18 +0300 |
|---|---|---|
| committer | Veikka Kähkönen <insiding@gmail.com> | 2017-10-17 20:46:18 +0300 |
| commit | ba809c038aea0b8e337f540b893449caf2505115 (patch) | |
| tree | c233ed7a66810d5f8b083c6fc3310c979353a678 /jekyll.docker | |
| parent | 8b9fdd13beeca586cb2bf34e7abfb621708742fd (diff) | |
Make Docker clone the repo instead of mounting the host's copy
Diffstat (limited to 'jekyll.docker')
| -rw-r--r-- | jekyll.docker | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jekyll.docker b/jekyll.docker index ebb5518..a4c57e8 100644 --- a/jekyll.docker +++ b/jekyll.docker @@ -2,9 +2,12 @@ FROM alpine MAINTAINER Your Name "your@name.com" RUN apk update -RUN apk add ruby ruby-dev libffi-dev build-base +RUN apk add ruby ruby-dev libffi-dev build-base git RUN gem install jekyll json --no-doc --no-ri +RUN git clone --single-branch --depth 1 https://github.com/kauha/uudempiAS.git \ + /data/site-git + VOLUME ["/usr/share/nginx/html"] CMD ["jekyll", "build", "--source=/data/site-git", "--destination=/usr/share/nginx/html"] |
