fix(ci): add workspace root src/lib.rs, fix Docker build target
This commit is contained in:
+3
-2
@@ -9,12 +9,13 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libssl-dev \
|
libssl-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy manifests
|
# Copy manifests and source
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
|
RUN mkdir -p src && echo '// workspace root' > src/lib.rs
|
||||||
COPY crates ./crates
|
COPY crates ./crates
|
||||||
|
|
||||||
# Build release binary
|
# Build release binary
|
||||||
RUN cargo build --release --bin mem
|
RUN cargo build --release -p mem-cli --bin mem
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
// Workspace root - integration tests live in tests/
|
||||||
Reference in New Issue
Block a user