This is a reusable Docker image that allows to deploy static sites to Dokku with Dockerfile (and without using buildbacks).
-
Put your static site into
html/
folder in the root of your project. -
Create
Dockerfile
in the root of your static site with the following contents:
FROM giorgos/dokku-static-site
- Push the project to Dokku as usual:
DOKKU_HOST=dokku.me dokku-client.sh apps:create mysite
git push dokku master
The site is now available at http://mysite.dokku.me