Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
hugo extended_0.152.2 # Should match the version in compose.yml
hugo extended_0.152.2 # Should match the hugo version in compose.yml and Dockerfile
golang 1.21.0
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Should match the hugo version in .tool-versions
FROM docker.io/hugomods/hugo:0.152.2
LABEL authors="mrjones@medic.org"
RUN apk add --no-cache gfortran bash curl grep
ENTRYPOINT ["hugo", "server", "--buildDrafts", "--buildFuture", "--bind", "0.0.0.0"]
8 changes: 3 additions & 5 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
services:
hugo:
container_name: cht-hugo
image: docker.io/hugomods/hugo:0.152.2 # Should match the version in .tool-versions
image: cht-hugo:0.152.2 # Should match the hugo version in .tool-versions
build:
context: .
ports:
- 1313:1313
volumes:
- ./:/src
command: >
sh -c "apk add bash curl grep &&
hugo server --buildDrafts --buildFuture --bind 0.0.0.0"

Loading