I love dokku but deploying a simple HTML site is actually quite annoying, so I made dokku-pages
.
1. Install
npm i -g dokku-pages
2. Deploy Dokku Site
dokku-pages deploy -g dokku@mysite.com:app -d dist --minimal
That’s it!
Optimization
And by using the minimal flag you can also save a tonne of space in your dokku instance.
Deploy Command | Dokku Type | Image Size |
---|---|---|
deploy ... |
Herokuish Build Pack | 1.5 GB |
deploy ... --minimal |
Docker Build | 22 MB |
That’s a saving of 98.5%
!
Anyway, hopefully someone else finds this useful.