From 44e882979df2f85bdb6efd6a2ab1c8852a2915ec Mon Sep 17 00:00:00 2001 From: Jaseem Abid Date: Wed, 30 Mar 2022 22:48:32 +0100 Subject: [PATCH] Add docker images, push to temp registry and update docs The images are built with multi platform support like this: $ docker buildx create --name mybuilder --use $ docker buildx build --push --platform linux/arm64,linux/amd64 -t olifant/simple-dash:latest . The images require the user to mount a config file just as usual. --- Dockerfile | 5 +++++ README.md | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile 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/)