chore: fix Dockerfile
This commit is contained in:
parent
18d9d41c34
commit
239197771a
@ -1,6 +1,6 @@
|
||||
# Multi-stage build for SecretumVault
|
||||
# Stage 1: Builder
|
||||
FROM rust:1.82 as builder
|
||||
FROM rust:bookworm as builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
@ -8,6 +8,11 @@ WORKDIR /build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libssl-dev \
|
||||
pkg-config \
|
||||
clang \
|
||||
libclang-dev \
|
||||
cmake \
|
||||
build-essential \
|
||||
protobuf-compiler \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy manifests
|
||||
@ -16,11 +21,11 @@ COPY Cargo.toml Cargo.lock ./
|
||||
# Copy source code
|
||||
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"
|
||||
|
||||
# Stage 2: Runtime
|
||||
FROM debian:bookworm-slim
|
||||
FROM debian:bookworm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user