File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,17 +7,18 @@ COPY dashboard/ .
77RUN npm run build
88
99# ── Stage 2: Build Rust backend (with embedded frontend) ────────────
10- FROM rust:1.85 -slim AS backend-build
10+ FROM rust:1.88 -slim AS backend-build
1111WORKDIR /app
12- RUN apt-get update && apt-get install -y pkg-config libssl-dev build-essential autoconf automake libtool && rm -rf /var/lib/apt/lists/*
12+ RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev gcc libc6-dev make libsodium-dev && rm -rf /var/lib/apt/lists/*
1313COPY Cargo.toml Cargo.lock ./
1414COPY crates/ crates/
1515COPY --from=frontend-build /app/dashboard/dist dashboard/dist
16+ ENV SODIUM_USE_PKG_CONFIG=1
1617RUN cargo build --release --bin fishnet --features embed-dashboard
1718
1819# ── Stage 3: Runtime (single binary, no extra files) ────────────────
1920FROM debian:bookworm-slim AS runtime
20- RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
21+ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates libsodium23 && rm -rf /var/lib/apt/lists/*
2122RUN useradd -m -s /bin/bash fishnet
2223
2324WORKDIR /home/fishnet
You can’t perform that action at this time.
0 commit comments