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.