Sign inSign up

zyfdedh/blog

By zyfdedh

Updated over 9 years ago

Auto deploying blogs with docker and hugo.

Image
1

976

zyfdedh/blog repository overview

dockerfile-blog

Dockerfile for blog

Features

Auto deploying blogs with docker and hugo.

Auto updating blogs every 5min.

Param

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/

Run

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

Tag summary

Content type

Image

Digest

Size

354.3 MB

Last updated

over 9 years ago

docker pull zyfdedh/blog