chore: fix Dockerfile
Some checks failed
Rust CI / Security Audit (push) Has been cancelled
Rust CI / Check + Test + Lint (nightly) (push) Has been cancelled
Rust CI / Check + Test + Lint (stable) (push) Has been cancelled

This commit is contained in:
Jesús Pérez 2026-02-14 05:11:12 +00:00
parent 18d9d41c34
commit 239197771a
Signed by: jesus
GPG Key ID: 9F243E355E0BC939

View File

@ -1,6 +1,6 @@
# Multi-stage build for SecretumVault # Multi-stage build for SecretumVault
# Stage 1: Builder # Stage 1: Builder
FROM rust:1.82 as builder FROM rust:bookworm as builder
WORKDIR /build WORKDIR /build
@ -8,6 +8,11 @@ WORKDIR /build
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
libssl-dev \ libssl-dev \
pkg-config \ pkg-config \
clang \
libclang-dev \
cmake \
build-essential \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy manifests # Copy manifests
@ -16,11 +21,11 @@ COPY Cargo.toml Cargo.lock ./
# Copy source code # Copy source code
COPY src ./src COPY src ./src
# Build with all features # Build with full features
RUN cargo build --release --features "server cli surrealdb-storage etcd-storage postgresql-storage aws-lc pqc cedar" RUN cargo build --release --features "server cli surrealdb-storage etcd-storage postgresql-storage aws-lc pqc cedar"
# Stage 2: Runtime # Stage 2: Runtime
FROM debian:bookworm-slim FROM debian:bookworm
WORKDIR /app WORKDIR /app