Add examples
This commit is contained in:
parent
ece2c9c8d6
commit
3b73828f25
1 changed files with 20 additions and 1 deletions
21
README.md
21
README.md
|
@ -2,8 +2,27 @@
|
||||||
|
|
||||||
Hugo in a Docker container
|
Hugo in a Docker container
|
||||||
|
|
||||||
|
## Running
|
||||||
|
|
||||||
|
Example `docker run`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -v /path/to/site:/data docker.askiiart.net/askiiart/hugo hugo version
|
||||||
|
```
|
||||||
|
|
||||||
|
Example `docker-compose.yml`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
hugo:
|
||||||
|
image: docker.askiiart.net/askiiart/hugo
|
||||||
|
volumes:
|
||||||
|
- /path/to/site:/data
|
||||||
|
command: hugo version
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
1. Download Dart Sass (linux-x64) from [here](https://github.com/sass/dart-sass/releases/latest), and extract it with `tar -xzf dart-sass-*.tar.gz`
|
1. Download Dart Sass (linux-x64) from [here](https://github.com/sass/dart-sass/releases/latest), and extract it with `tar -xzf dart-sass-*.tar.gz`
|
||||||
2. Download Hugo from (linux-amd64) from [here](https://github.com/gohugoio/hugo/releases/latest) and extract it with `tar -xzf hugo_*_linux-amd64.tar.gz --one-top-level`
|
2. Download Hugo from (linux-amd64) from [here](https://github.com/gohugoio/hugo/releases/latest) and extract it with `tar -xzf hugo_*_linux-amd64.tar.gz --one-top-level`
|
||||||
3. Run `docker build .`
|
3. Run `docker build .`
|
||||||
|
|
Loading…
Reference in a new issue