diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2aea482 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM nginx:stable + +COPY ./index.html /usr/share/nginx/html/index.html +COPY ./favicon.ico /usr/share/nginx/html/ +ADD ./common/ /usr/share/nginx/html/common diff --git a/README.md b/README.md index 9e3192c..4627b3e 100644 --- a/README.md +++ b/README.md @@ -19,5 +19,14 @@ This project uses: ## To Use Copy the config.sample.json file and rename to config.json. Be sure to update the fields as you see appropriate. +## Docker + +Docker images based on nginx are pushed to docker hub as +[olifant/simple-dash](https://hub.docker.com/r/olifant/simple-dash). Run the container by mounting a config file from +the host and expose the necessary ports. + + $ docker pull olifant/simple-dash:latest + $ docker run -p 8080:80 -v $(pwd)/config.json:/usr/share/nginx/html/config.json olifant/simple-dash:latest + ## Configure Homepage - 'items' => The menu will scale to the amount of items you want to display. Insert any link you'd like, or {{cur}} for the current URL of the page. Choose icons from [Font Awesome](http://fontawesome.io/icons/)