Skip to content

A basic docker image to host a static website from a git repo

Notifications You must be signed in to change notification settings

jarretlavallee/docker-static-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static-Site

Static-Site is a basic docker image that will download a static site from a git repository and host it. It is dependent on the nginx image. This image does not handle authentication at the moment and requires that the site be statically built in the git repo under a branch.

Usage

To use this container, you should populate the following environment variables.

GIT_URL: The http://github.com/username/repo.git URL to the git repository GIT_BRANCH: The branch in the git repo that contains the staticly built html files. (OPTIONAL)

To deloy a container with this image the following command can be used.

docker run -d -p 8080:80 -e "GIT_URL=https://github.com/username/repo.git" -e "GIT_BRANCH=master" jarretlavallee/static-site

License

This is licensed under WTFPL license.

About

A basic docker image to host a static website from a git repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published