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 && \
|
|
|
|
git clone https://github.com/kristapsdz/lowdown.git && \
|
|
|
|
cd lowdown && ./configure && make && make regress && make install && cd .. && \
|
|
|
|
chmod u+x ./ssg5 && mkdir dst && \
|
2021-03-08 11:03:02 +01:00
|
|
|
./ssg5 ./src/ ./dst/ "Louis Vallat" "blog.louis-vallat.xyz"
|
2021-03-08 10:57:57 +01:00
|
|
|
|
|
|
|
FROM nginx
|
|
|
|
|
|
|
|
COPY --from=builder /root/dst /usr/share/nginx/html
|