Skip to content

Commit b86fe88

Browse files
committed
Fix CI build by adding OpenSSL dependencies to Dockerfile
1 parent df46aa6 commit b86fe88

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ FROM rust:1.85-slim as builder
22

33
WORKDIR /app
44

5+
# Install OpenSSL dependencies
6+
RUN apt-get update && \
7+
apt-get install -y pkg-config libssl-dev && \
8+
rm -rf /var/lib/apt/lists/*
9+
510
# Copy Cargo files for dependency caching
611
COPY Cargo.toml Cargo.lock* ./
712

@@ -15,7 +20,7 @@ RUN cargo build --release
1520
FROM debian:bookworm-slim
1621

1722
# Install dependencies for SSL/TLS
18-
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
23+
RUN apt-get update && apt-get install -y ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
1924

2025
# Copy the built binary from the builder stage
2126
COPY --from=builder /app/target/release/l402-server-example-rs /usr/local/bin/l402-server

0 commit comments

Comments
 (0)