Skip to content

Commit

Permalink
update docker file to install libssl3
Browse files Browse the repository at this point in the history
  • Loading branch information
niteshbalusu11 committed Aug 8, 2024
1 parent 15b97e1 commit 1474c83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# First stage: Build the Rust application
FROM rust:1.72.1 AS builder
FROM rust:1.79 AS builder
# Install system dependencies
RUN apt-get update && \
apt-get install -y cmake pkg-config && \
Expand All @@ -13,10 +13,10 @@ COPY . .
RUN cargo build --release

# Second stage: Create a smaller runtime image
FROM debian:bullseye-slim
FROM ubuntu:22.04
# Install necessary runtime dependencies
RUN apt-get update && \
apt-get install -y libssl1.1 ca-certificates && \
apt-get install -y libssl3 ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy the compiled binary from the builder stage
Expand Down

0 comments on commit 1474c83

Please sign in to comment.