Dockerised rust blog serving content from a directory of markdown posts.
Pull docker image and run:
docker pull clux/blog
docker run -p 8000:80 -t --rm clux/blog
Once the container is running, open http://0.0.0.0:8000/ in your web browser.
The production build of this blog is entirely self-contained (FROM scratch
- statically linked using muslrust), and uses no database.
Clone this repo, the dependent post repo, then build and link.
git clone [email protected]:clux/blog.git && cd blog
git clone [email protected]:clux/posts.git
rustup override set $(cat .rustup)
cargo build
cargo run
Iterate and verify:
cargo run
cargo fmt
cargo test
cargo doc
Check that the docker version works:
make build
make run