From d41422ac6eea624c497a3bfdc37180ea7647603a Mon Sep 17 00:00:00 2001 From: _ <> Date: Mon, 2 Nov 2020 18:10:58 +0000 Subject: [PATCH] :whale: :bug: Fix SSL depends for Docker build --- .gitignore | 4 +++- Dockerfile | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2e2a568..b51e2f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ -/target +/Cargo.lock +/old-git.tar.gz /ptth_server.toml /ptth_relay.toml +/target diff --git a/Dockerfile b/Dockerfile index fc48849..3e85827 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM rust:1.47-slim-buster as build WORKDIR /usr/src RUN apt-get update \ -&& apt-get install -y git pkg-config +&& apt-get install -y git pkg-config libssl-dev # Make sure the dependencies are all cached so we won't hammer crates.io @@ -28,6 +28,7 @@ RUN git checkout "$gitcommithash" \ FROM debian:buster-slim as deploy RUN apt-get update \ +&& apt-get install -y libssl1.1 ca-certificates \ && apt-get upgrade COPY --from=build /usr/src/target/release/ptth_relay /root