|
@@ -0,0 +1,22 @@
|
|
1
|
+= Hugo docker image
|
|
2
|
+
|
|
3
|
+This is a base image I use for building static websites using https://gohugo.io[Hugo].
|
|
4
|
+
|
|
5
|
+It contains a recent version of hugo-extended, https://asciidoctor.org/[AsciiDoctor],
|
|
6
|
+and http://pygments.org/[Pygments] support for them both.
|
|
7
|
+
|
|
8
|
+Typical use will look like:
|
|
9
|
+
|
|
10
|
+[source,dockerfile]
|
|
11
|
+----
|
|
12
|
+FROM csmith/hugo AS hugo
|
|
13
|
+
|
|
14
|
+ADD site /tmp/site
|
|
15
|
+RUN hugo -b https://example.com -v -s /tmp/site -d /tmp/output
|
|
16
|
+
|
|
17
|
+# Further process or serve the generated output
|
|
18
|
+FROM another/image
|
|
19
|
+
|
|
20
|
+COPY --from=hugo /tmp/output ....
|
|
21
|
+----
|
|
22
|
+
|