hugo as docker container
| Parameter | Default Value | Description |
|---|---|---|
| HUGO_VERSION | 0.70.0 | hugo version (see https://github.com/gohugoio/hugo/releases) |
| HUGO_PACKAGE | hugo_${HUGO_VERSION}_linux-64bit.tar.gz | just the internal name for the tar.gz package |
| HUGO_DIR | /usr/hugo | directory, where the hugo site is stored |
| HUGO_URL | example.de | url for the hugo site |
| HUGO_PORT | 1313 | port of the hugo server |
| HUGO_APPEND_PORT | false | |
| HUGO_BIND | 0.0.0.0 | bind hugo server to everything |
| HUGO_OPTIONS | --navigateToChanged --templateMetrics --buildDrafts | some options, see hugo docu for more informations |
use the following command to run it as dockerservice:
docker
edit the .env.sample fiel and start the service with
docker-compose up -d
Content type
Image
Digest
Size
184.4 MB
Last updated
over 6 years ago
docker pull datoma/hugo