Sign inSign up

kenny1har/dokku-static-site

By kenny1har

•Updated over 8 years ago

hugo-gohugo

Image
0

292

kenny1har/dokku-static-site repository overview

⁠Dokku static site

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⁠

⁠HOW TO

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⁠

⁠Ignoring certain files

Create .dockerignore if you want to exclude certain files from getting exposed. For example, you may want this:

Dockerfile
.dockerignore
README.md

Tag summary

Content type

Image

Digest

Size

37.8 MB

Last updated

over 8 years ago

docker pull kenny1har/dokku-static-site