aboutsummaryrefslogtreecommitdiffstats
path: root/jekyll.docker
blob: 809d9948412979ddc8471a8c60d499f61bdbdfc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM alpine
MAINTAINER Your Name "your@name.com"

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

# If this argument has changed, Docker will only use cached data until this
# point
ARG COMMIT_HASH

RUN git clone --single-branch --depth 1 https://github.com/kauha/uudempiAS.git \
    /data/site-git

CMD ["jekyll", "build", "--source=/data/site-git", "--destination=/usr/share/nginx/html"]