StarrySkyWorld commited on
Commit
63bb852
·
verified ·
1 Parent(s): 5a2e106

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.83 as builder
2
+
3
+ WORKDIR /app
4
+ RUN git clone https://github.com/hank9999/kiro.rs.git .
5
+ RUN cargo build --release
6
+
7
+ FROM debian:bookworm-slim
8
+
9
+ RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
10
+
11
+ WORKDIR /app
12
+ COPY --from=builder /app/target/release/kiro-rs /app/kiro-rs
13
+
14
+ # HF Spaces 要求监听 7860 端口
15
+ EXPOSE 7860
16
+
17
+ CMD ["./kiro-rs", "-c", "/app/config.json", "--credentials", "/app/credentials.json"]