ohmyapi commited on
Commit
3c3783a
Β·
1 Parent(s): a8409f6

Switch to pre-built kiro-rs Docker image (ghcr.io/hank9999/kiro-rs:beta-7d4d74)

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -17
Dockerfile CHANGED
@@ -1,25 +1,13 @@
1
- # ── Stage 1: Build Admin UI ──
2
- FROM node:22-alpine AS frontend-builder
3
- RUN apk add --no-cache git
4
- RUN git clone --depth 1 https://github.com/hank9999/kiro.rs.git /app
5
- WORKDIR /app/admin-ui
6
- RUN npm install -g pnpm && pnpm install && pnpm build
7
 
8
- # ── Stage 2: Build Rust Binary ──
9
- FROM rust:1.86-alpine AS builder
10
- RUN apk add --no-cache musl-dev git
11
- RUN git clone --depth 1 https://github.com/hank9999/kiro.rs.git /app
12
- COPY --from=frontend-builder /app/admin-ui/dist /app/admin-ui/dist
13
- WORKDIR /app
14
- RUN cargo build --release
15
-
16
- # ── Stage 3: Runtime ──
17
  FROM alpine:3.21
18
  RUN apk add --no-cache ca-certificates
19
  WORKDIR /app
20
- COPY --from=builder /app/target/release/kiro-rs /app/kiro-rs
 
21
  COPY entrypoint.sh /app/entrypoint.sh
22
- RUN chmod +x /app/entrypoint.sh
23
 
24
  EXPOSE 7860
25
  VOLUME ["/app/config"]
 
1
+ # Use pre-built kiro-rs image instead of compiling from source
2
+ FROM ghcr.io/hank9999/kiro-rs:beta-7d4d74 AS upstream
 
 
 
 
3
 
 
 
 
 
 
 
 
 
 
4
  FROM alpine:3.21
5
  RUN apk add --no-cache ca-certificates
6
  WORKDIR /app
7
+
8
+ COPY --from=upstream /app/kiro-rs /app/kiro-rs
9
  COPY entrypoint.sh /app/entrypoint.sh
10
+ RUN chmod +x /app/kiro-rs /app/entrypoint.sh
11
 
12
  EXPOSE 7860
13
  VOLUME ["/app/config"]