aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Containerfile7
-rw-r--r--Makefile2
-rwxr-xr-xclone-generate-and-serve.sh5
3 files changed, 12 insertions, 2 deletions
diff --git a/Containerfile b/Containerfile
index fb8eb2e..4eec831 100644
--- a/Containerfile
+++ b/Containerfile
@@ -1,2 +1,5 @@
-FROM nginx:alpine
-COPY public /usr/share/nginx/html
+FROM alpine:3
+RUN apk add --no-cache git hugo nginx
+COPY clone-generate-and-serve.sh /bin/clone-generate-and-serve.sh
+ENTRYPOINT ["/bin/clone-generate-and-serve.sh"]
+
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d996f14
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,2 @@
+build:
+ podman build -t capotej-site . \ No newline at end of file
diff --git a/clone-generate-and-serve.sh b/clone-generate-and-serve.sh
new file mode 100755
index 0000000..674a627
--- /dev/null
+++ b/clone-generate-and-serve.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+git clone https://git.capotej.com/capotej/capotej.com.git
+
+cd capotej.com && hugo \ No newline at end of file