-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (26 loc) · 965 Bytes
/
Dockerfile
File metadata and controls
38 lines (26 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# ---------------------------------------------------
# 1. Builder Stage
# ---------------------------------------------------
FROM rust:1.75-slim-bookworm as builder
WORKDIR /app
RUN apt-get update && apt-get install -y pkg-config libssl-dev
COPY . .
# CHANGE: Build BOTH binaries (kora AND zombie_account_setup)
RUN cargo build --release --bin kora --bin zombie_account_setup
# ---------------------------------------------------
# 2. Runtime Stage
# ---------------------------------------------------
FROM debian:bookworm-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
ca-certificates \
libssl3 \
&& rm -rf /var/lib/apt/lists/*
# Copy the main bot
COPY --from=builder /app/target/release/kora /usr/local/bin/kora
# CHANGE: Copy the setup tool
COPY --from=builder /app/target/release/zombie_account_setup /usr/local/bin/zombie_account_setup
RUN mkdir -p /app/config
# Check main binary
RUN kora --version
ENTRYPOINT ["kora"]