Skip to content

Commit 2e1b1a2

Browse files
committed
Add a floki-hugo.yaml file for quickly running 'hugo' commands for building and testing documentation.
1 parent b5774b0 commit 2e1b1a2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

floki-hugo.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# For shell to work, need Alpine, Debian or Ubuntu versions of this container.
2+
# See https://hub.docker.com/r/klakegg/hugo/.
3+
image: klakegg/hugo:alpine
4+
mount: /src
5+
docker_switches:
6+
# Expose port 1313, as this is the port the server exposes for locally built
7+
# documentation.
8+
- -p
9+
- 1313:1313
10+
# The entrypoint for this container is a direct call to the "hugo" script. To
11+
# get a shell, we need to pass "shell" to this script, hence the "hack" of
12+
# setting "shell" to "shell".
13+
shell: shell
14+
# To run a hugo server, run "hugo server -D" from the /src/docs directory.

0 commit comments

Comments
 (0)