Skip to content

Commit

Permalink
Include ca certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
miam-miam committed Mar 6, 2024
1 parent 32804c6 commit ae46538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rust:1.76-buster as build

RUN apt-get update && apt-get -y install libssl-dev openssl && apt upgrade -y openssl && apt clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get -y install libssl-dev openssl ca-certificates tzdata && apt upgrade -y openssl && apt clean && rm -rf /var/lib/apt/lists/*

# create a new empty shell project
RUN USER=root cargo new --bin verify-bot
Expand All @@ -25,7 +25,7 @@ RUN cargo build --release
# our final base
FROM debian:buster

RUN apt-get update && apt-get -y install libssl-dev openssl && apt upgrade -y openssl && apt clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get -y install libssl-dev openssl ca-certificates tzdata && apt upgrade -y openssl && apt clean && rm -rf /var/lib/apt/lists/*

# copy the build artifact from the build stage
COPY --from=build /verify-bot/target/release/verify-bot .
Expand Down

0 comments on commit ae46538

Please sign in to comment.