mirror of
https://github.com/hugomods/docker.git
synced 2025-04-26 13:10:48 +03:00
611 B
611 B
Hugo Docker Image
A Hugo docker image that contains Node, NPM, Git, Go and extended Hugo.
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.