blog/Dockerfile
Louis Vallat bc2a00556a
All HTML files will be enriched once generated
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2022-01-24 19:07:20 +01:00

18 lines
531 B
Docker

FROM alpine AS builder
WORKDIR /root
COPY . .
RUN apk --no-cache add gcc git make musl-dev npm && \
git clone -b VERSION_0_10_0 https://github.com/kristapsdz/lowdown.git && \
cd lowdown && ./configure && make && make regress && make install && cd .. && \
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
FROM nginx
COPY --from=builder /root/dst /usr/share/nginx/html