From 849189502501b7a07be7356c16df46ec5e81f871 Mon Sep 17 00:00:00 2001 From: David <5287736+nuvious@users.noreply.github.com> Date: Sun, 22 Dec 2024 13:24:41 -0500 Subject: [PATCH] Added dockerfile to resolve #116. Tested on Ubuntu WSL and in a micro8s kubernetes cluster. --- .dockerignore | 3 +++ Dockerfile | 3 +++ readme.md | 12 ++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9f7e788 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +Dockerfile +*.md +License.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..14838f0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:stable-alpine + +COPY . /usr/share/nginx/html/ diff --git a/readme.md b/readme.md index 949c879..d6dbd11 100644 --- a/readme.md +++ b/readme.md @@ -106,6 +106,18 @@ Performs similarly to commercial software, after both have run for about 5 minut ![Concave flag example](http://svgnest.com/github/concave.png) +## Run with Docker + +A Dockerfile has been provided for those wanting to run locally/self-host with [Docker](https://www.docker.com/). +Build/run commands provided below: + +```bash +docker build -t svgnest . +docker run -d --name svgnest -p 8080:80 svgnest +``` + +The instance is then available by navigating to http://localhost:8080. + ## To-do - ~~Recursive placement (putting parts in holes of other parts)~~