docker-hugo/README.md

38 lines
933 B
Markdown
Raw Permalink Normal View History

2023-08-26 13:44:05 -05:00
# docker-hugo
2023-09-01 21:07:08 -05:00
[![Build Status](https://drone.askiiart.net/api/badges/askiiart/docker-hugo/status.svg)](https://drone.askiiart.net/askiiart/docker-hugo)
2023-08-26 13:44:05 -05:00
Hugo in a Docker container
2023-08-26 15:27:44 -05:00
## 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
2023-08-28 17:11:38 -05:00
```
2023-08-26 15:27:44 -05:00
2023-08-26 13:44:05 -05:00
## Building
### Manually
2023-08-26 13:44:05 -05:00
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`
2023-08-26 13:46:48 -05:00
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`
2023-08-26 15:27:44 -05:00
3. Run `docker build .`
### Automatically
1. Edit and run `./download-build-push.sh`