FROM rust:1-alpine AS builder
WORKDIR /app
COPY . .
RUN cargo build --locked --release --no-default-features --features mcp,http
FROM alpine:3.21
COPY --from=builder /app/target/release/logcut /usr/local/bin/logcut
USER nobody
EXPOSE 8080
CMD ["logcut", "serve-http"]