No description
|
||
---|---|---|
.drone.yml | ||
.gitignore | ||
build-and-push.sh | ||
Dockerfile | ||
download.sh | ||
README.md |
docker-hugo
Hugo in a Docker container
Running
Example docker run
:
docker run -v /path/to/site:/data docker.askiiart.net/askiiart/hugo hugo version
Example docker-compose.yml
:
version: '3.7'
services:
hugo:
image: docker.askiiart.net/askiiart/hugo
volumes:
- /path/to/site:/data
command: hugo version
Building
Manually
- Download Dart Sass (linux-x64) from here, and extract it with
tar -xzf dart-sass-*.tar.gz
- Download Hugo from (linux-amd64) from here and extract it with
tar -xzf hugo_*_linux-amd64.tar.gz --one-top-level
- Run
docker build .
Automatically
- Edit and run
./download-build-push.sh