32 lines
460 B
YAML
32 lines
460 B
YAML
|
version: "3"
|
||
|
services:
|
||
|
|
||
|
build:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile_hugo
|
||
|
command: |
|
||
|
/bin/bash -c "
|
||
|
cd /code
|
||
|
hugo --destination _site/
|
||
|
"
|
||
|
volumes:
|
||
|
- .:/code
|
||
|
|
||
|
|
||
|
serve:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile_hugo
|
||
|
command: |
|
||
|
/bin/bash -c "
|
||
|
cd /code
|
||
|
hugo serve
|
||
|
"
|
||
|
ports:
|
||
|
- "1313:1313"
|
||
|
network_mode: "host"
|
||
|
volumes:
|
||
|
- .:/code
|
||
|
|