From 6e2f5d4b1ad15d82ba88fa049dfaddc163f09bce Mon Sep 17 00:00:00 2001 From: servostar Date: Fri, 24 Nov 2023 23:42:14 +0100 Subject: [PATCH] added Makefile --- Makefile | 12 ++++++++++++ compile-web.sh | 3 --- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 Makefile delete mode 100755 compile-web.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cd84980 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ + +compile-web: + cd web && inliner page.html > ../index-inlined-minified.html + +run: + go run . + +docker-build: + docker build -t errorpages . + +docker-run: + docker run -itd --rm -p 8000:8000 -e BIND="0.0.0.0" -e PORT="8000" --name errorpages errorpages diff --git a/compile-web.sh b/compile-web.sh deleted file mode 100755 index 5ff35cc..0000000 --- a/compile-web.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh -cd web -inliner page.html > ../index-inlined-minified.html