diff options
author | Julio Capote <jcapote@gmail.com> | 2023-02-12 02:06:56 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-02-12 02:06:56 +0000 |
commit | 198bd5ce59d698420c34052d4ea71950a686cf44 (patch) | |
tree | c73519f7885cf0ad2dda03f3b3a58f14dc7bb259 | |
parent | f24f2d15275961f1c0144e68fde75a60aeaaa165 (diff) | |
download | capotej.com-198bd5ce59d698420c34052d4ea71950a686cf44.tar.gz |
start of container entrypoint
-rw-r--r-- | Containerfile | 7 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | clone-generate-and-serve.sh | 5 |
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 |