2021-03-08 10:57:57 +01:00
|
|
|
FROM alpine AS builder
|
|
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
2022-01-24 19:07:20 +01:00
|
|
|
COPY . .
|
2021-03-08 10:57:57 +01:00
|
|
|
|
2022-01-24 19:07:20 +01:00
|
|
|
RUN apk --no-cache add gcc git make musl-dev npm && \
|
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 .. && \
|
2022-01-24 19:07:20 +01:00
|
|
|
npm install && \
|
|
|
|
chmod u+x ./ssg5 && mkdir -p dst && \
|
|
|
|
./ssg5 ./src/ ./dst/ "Le blog de Louis Vallat" "https://blog.louis-vallat.xyz" && rm dst/.files && \
|
|
|
|
node ./enrich_codeblocks.js
|
2021-03-08 10:57:57 +01:00
|
|
|
|
|
|
|
FROM nginx
|
|
|
|
|
|
|
|
COPY --from=builder /root/dst /usr/share/nginx/html
|