From 198bd5ce59d698420c34052d4ea71950a686cf44 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sat, 11 Feb 2023 21:06:56 -0500 Subject: start of container entrypoint --- Containerfile | 7 +++++-- Makefile | 2 ++ clone-generate-and-serve.sh | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100755 clone-generate-and-serve.sh 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 -- cgit v1.2.3