|
|
|
|
|
FROM rust:1.85-bookworm AS builder |
|
|
|
|
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ |
|
|
&& apt-get install -y nodejs |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
RUN git clone https://github.com/AmethystDev-Labs/kiro.rs.git . |
|
|
|
|
|
|
|
|
RUN cd admin-ui && npm install && npm run build |
|
|
|
|
|
|
|
|
RUN cargo build --release |
|
|
|
|
|
|
|
|
FROM debian:bookworm-slim |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
ca-certificates \ |
|
|
libssl3 \ |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
COPY --from=builder /app/target/release/kiro-rs . |
|
|
COPY --from=builder /app/admin-ui/dist ./admin-ui/dist |
|
|
|
|
|
|
|
|
COPY config.json . |
|
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
|
|
|
CMD ["./kiro-rs", "-c", "/app/config.json"] |