Dockerfile for blog
Auto deploying blogs with docker and hugo.
Auto updating blogs every 5min.
Specific environment variables when run docker container:
BLOG_BASE_URL: Base url for hugo to generate static file path.
example1: http://45.32.27.127/
example2: https://zyfdegh.github.io/
example3: http://myblog.com/
If I have a domain blog.fanach.win -> 1.2.3.4.
sudo docker run -d --restart=always -p 80:80 -e BLOG_BASE_URL="http://blog.fanach.win/" zyfdedh/blog
Content type
Image
Digest
Size
354.3 MB
Last updated
over 9 years ago
docker pull zyfdedh/blog