marmite 0.2.6

Marmite is the easiest static site generator.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM rust:slim-bookworm AS builder

RUN apt-get update -y && \
  apt-get install -y make g++ libssl-dev && \
  rustup target add x86_64-unknown-linux-gnu

WORKDIR /app
COPY . .

RUN cargo build --release --target x86_64-unknown-linux-gnu


FROM gcr.io/distroless/cc-debian12
COPY --from=builder /app/target/x86_64-unknown-linux-gnu/release/marmite /bin/marmite
WORKDIR /input

# docker run -v $(pwd):/input marmite
ENTRYPOINT [ "/bin/marmite", ".", "site" ]