From 349775bffb5f04cfde76f369aeefb3bda6f9f59a Mon Sep 17 00:00:00 2001 From: Brad Treloar Date: Wed, 5 Feb 2025 23:43:00 +1030 Subject: [PATCH] Add build and run scripts --- build.sh | 4 ++++ run.sh | 3 +++ 2 files changed, 7 insertions(+) create mode 100755 build.sh create mode 100755 run.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..8ade5c6 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Build/rebuild the image. +docker build --no-cache -t notes-server . diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..04c767f --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker run --mount type=bind,src=./site,dst=/usr/share/nginx/html -p 42069:80 -t notes-server