From d8000e81091f7192865f52cd5bc99a1e54a9bb84 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Mon, 8 Mar 2021 10:57:57 +0100 Subject: [PATCH] Added Dockerfile for building the blog container Signed-off-by: Louis Vallat --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f37cca6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine AS builder + +WORKDIR /root + +COPY src ./src +COPY ssg5 . + +RUN apk --no-cache add gcc git make musl-dev && \ + git clone https://github.com/kristapsdz/lowdown.git && \ + cd lowdown && ./configure && make && make regress && make install && cd .. && \ + chmod u+x ./ssg5 && mkdir dst && \ + ./ssg5 ./src/ ./dst/ "Blog" "blog.louis-vallat.xyz" + +FROM nginx + +COPY --from=builder /root/dst /usr/share/nginx/html