forked from kiali/kiali.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (26 loc) · 1013 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
30
31
32
33
34
35
36
37
38
FROM registry.fedoraproject.org/fedora-minimal:40
ARG HUGO_VERSION
VOLUME /site
WORKDIR /site
# Required when running htmlproofer
ENV LANG=C.UTF-8
# Install dependencies needed for hugo
RUN microdnf -y install tar shadow-utils git nodejs
# Install dependencies needed for htmlproofer
RUN microdnf -y install ruby ruby-devel gcc redhat-rpm-config
RUN microdnf clean all
# Download, untar, and install Hugo
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz /hugo.tar.gz
RUN tar xzvf /hugo.tar.gz -C / \
&& rm /hugo.tar.gz \
&& mv /hugo /usr/bin/hugo
# Stuff for docsy
RUN npm -g -D install postcss postcss-cli autoprefixer
# Install html-proofer
RUN gem install html-proofer
# Confirm htmlproofer binary is available and show its version
RUN htmlproofer --version
# This allows us to increase timeouts, and avoid htmlproofer errors
RUN gem install typhoeus
# Confirm hugo binary is available and show its version
RUN hugo version