2021-03-08 10:57:57 +01:00
|
|
|
FROM alpine AS builder
|
|
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
|
|
COPY src ./src
|
|
|
|
COPY ssg5 .
|
|
|
|
|
|
|
|
RUN apk --no-cache add gcc git make musl-dev && \
|
2022-01-16 17:33:48 +01:00
|
|
|
git clone -b VERSION_0_10_0 https://github.com/kristapsdz/lowdown.git && \
|
2021-03-08 10:57:57 +01:00
|
|
|
cd lowdown && ./configure && make && make regress && make install && cd .. && \
|
|
|
|
chmod u+x ./ssg5 && mkdir dst && \
|
2021-03-12 10:55:59 +01:00
|
|
|
./ssg5 ./src/ ./dst/ "Le blog de Louis Vallat" "https://blog.louis-vallat.xyz" && rm dst/.files
|
2021-03-08 10:57:57 +01:00
|
|
|
|
|
|
|
FROM nginx
|
|
|
|
|
|
|
|
COPY --from=builder /root/dst /usr/share/nginx/html
|