forked from codingdojo-org/codingdojo.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (25 loc) · 793 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM tclavier/nginx
RUN apt-get update \
&& apt-get install -y \
git \
git \
imagemagick \
linkchecker \
make \
wget \
&& apt-get clean
# Force dependecy of linkchecker
RUN apt-get update \
&& apt-get install -y \
python-dnspython \
python-xdg \
&& apt-get clean
RUN wget https://github.com/spf13/hugo/releases/download/v0.37.1/hugo_0.37.1_Linux-64bit.deb -O /tmp/hugo.deb \
&& dpkg -i /tmp/hugo.deb \
&& rm -f /tmp/hugo.deb
COPY . /site
RUN git clone https://github.com/codingdojo-org/template-hugo-codingdojo /site/themes/template-hugo-codingdojo
WORKDIR /site
RUN hugo --destination=/var/www
RUN linkchecker --ignore-url="https://github.*" --no-warnings /var/www/
COPY nginx_vhost.conf /etc/nginx/conf.d/codingdojo.conf