StarrySkyWorld commited on
Commit
a59ed09
·
verified ·
1 Parent(s): b59d624

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
- FROM rustlang/rust:nightly 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
@@ -14,5 +14,4 @@ COPY start.sh /app/start.sh
14
  RUN chmod +x /app/start.sh
15
 
16
  EXPOSE 7860
17
-
18
  CMD ["/app/start.sh"]
 
1
+ FROM rustlang/rust:nightly AS builder
 
2
  WORKDIR /app
3
  RUN git clone https://github.com/hank9999/kiro.rs.git .
4
  RUN cargo build --release
5
 
6
  FROM debian:bookworm-slim
7
+ RUN apt-get update && \
8
+ apt-get install -y ca-certificates curl openssl jq xxd && \
9
+ rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
  COPY --from=builder /app/target/release/kiro-rs /app/kiro-rs
 
14
  RUN chmod +x /app/start.sh
15
 
16
  EXPOSE 7860
 
17
  CMD ["/app/start.sh"]