From 8a70c668c9a402f03f7e41a4f59871f6abc1833c Mon Sep 17 00:00:00 2001 From: Ken Schaefer Date: Thu, 17 Nov 2022 08:27:21 -0600 Subject: [PATCH] Created a runbook for static html sites with docker --- Runbooks/docker-static-html-nginx.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Runbooks/docker-static-html-nginx.md diff --git a/Runbooks/docker-static-html-nginx.md b/Runbooks/docker-static-html-nginx.md new file mode 100644 index 0000000..86a4be3 --- /dev/null +++ b/Runbooks/docker-static-html-nginx.md @@ -0,0 +1,19 @@ +# Docker for static html using Nginx + +## Introduction +Use this runbook for your web development rather than setting up a whole Apache server. + +## The Dockerfile +``` +FROM nginx:alpine + +COPY . /usr/share/nginx/html + +EXPOSE 80 +``` + +## Build the image +`docker build -t myproject:v1 .` + +## Run a container from the image +`docker run -d -p 8080:80 myproject:v1` \ No newline at end of file