Switch to pre-built kiro-rs Docker image (ghcr.io/hank9999/kiro-rs:beta-7d4d74)
Browse files- Dockerfile +5 -17
Dockerfile
CHANGED
|
@@ -1,25 +1,13 @@
|
|
| 1 |
-
#
|
| 2 |
-
FROM
|
| 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 |
-
|
|
|
|
| 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"]
|