aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-02-12 02:06:56 +0000
committerJulio Capote <jcapote@gmail.com>2023-02-12 02:06:56 +0000
commit198bd5ce59d698420c34052d4ea71950a686cf44 (patch)
treec73519f7885cf0ad2dda03f3b3a58f14dc7bb259
parentf24f2d15275961f1c0144e68fde75a60aeaaa165 (diff)
downloadcapotej.com-198bd5ce59d698420c34052d4ea71950a686cf44.tar.gz
start of container entrypoint
Diffstat (limited to '')
-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