aboutsummaryrefslogtreecommitdiffstats
path: root/jekyll.docker
diff options
context:
space:
mode:
Diffstat (limited to 'jekyll.docker')
-rw-r--r--jekyll.docker9
1 files changed, 5 insertions, 4 deletions
diff --git a/jekyll.docker b/jekyll.docker
index a4c57e8..d68843a 100644
--- a/jekyll.docker
+++ b/jekyll.docker
@@ -1,13 +1,14 @@
FROM alpine
MAINTAINER Your Name "your@name.com"
-RUN apk update
-RUN apk add ruby ruby-dev libffi-dev build-base git
+VOLUME ["/usr/share/nginx/html"]
+
+RUN apk update && apk add ruby ruby-dev libffi-dev build-base git
RUN gem install jekyll json --no-doc --no-ri
+ARG COMMIT_HASH
+
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"]