This is a reusable Docker image that allows to deploy static sites to Dokku with Dockerfile (and without using buildbacks).
Originally based on https://github.com/glogiotatidis/dokku-static-site
Create Dockerfile in the root of your static site with the following contents:
FROM ilyasemenov/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
Create .dockerignore if you want to exclude certain files from getting exposed. For example, you may want this:
Dockerfile
.dockerignore
README.md
Content type
Image
Digest
Size
37.8 MB
Last updated
over 8 years ago
docker pull kenny1har/dokku-static-site