mirror of
https://github.com/hugomods/docker.git
synced 2025-04-26 13:10:48 +03:00
1.2 KiB
1.2 KiB
Hugo Docker Image
A up to date Hugo docker image that contains Node, NPM, Git, Go and extended Hugo.
There are two ways to check and build latest Hugo image.
- Waiting for the cron job (runs every 30mins).
- Trigger the job immediately by commenting on the issue.
All available versions (tags) can be found on https://hub.docker.com/repository/docker/razonyang/hugo/tags?page=1&ordering=last_updated.
Build Image
$ docker build \
-t razonyang/hugo \
./
Argument | Description |
---|---|
GOPROXY |
Go module proxy. |
GO_VERSION |
Go version. |
HUGO_VERSION |
Hugo version. |
NODE_VERSION |
Node version. |
Start Hugo Server
$ docker run -p 1313:1313 \
-v ${PWD}:/src \
razonyang/hugo \
hugo server --bind 0.0.0.0
Note that
--bind 0.0.0.0
is required.