From 150ce60bc3047d5123161486453317b405c44d9b Mon Sep 17 00:00:00 2001
From: Benjamin Wingfield <bwingfield@ebi.ac.uk>
Date: Mon, 26 Jun 2023 15:10:52 +0100
Subject: [PATCH] fix ca certificates

---
 Cargo.toml | 4 ++--
 Dockerfile | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 947d83d..71e4aee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,6 +18,6 @@ rusqlite = { version = "0.29.0", features = ["bundled"] }
 tinytemplate = "1.2.1"
 chrono = "0.4.26"
 tokio = { version = "1.28.2", features = ["full"] }
-rusoto_core = { version = "0.48.0" }
+rusoto_core = { version = "0.48.0", default_features = false, features=["rustls"] }
 rusoto_credential = { version = "0.48.0" }
-rusoto_s3 = { version = "0.48.0" }
\ No newline at end of file
+rusoto_s3 = { version = "0.48.0", default_features = false, features=["rustls"] }
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index 7968a79..a6b52ac 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,8 +8,8 @@ RUN cargo build --target x86_64-unknown-linux-gnu
 
 FROM --platform=linux/amd64 debian:stable-slim
 
-COPY --from=build /opt/build/target/x86_64-unknown-linux-gnu/debug/hattivatti /opt/
+RUN apt-get update && apt-get install -y ca-certificates
 
-RUN apt-get update && apt-get install -y openssl-dev
+COPY --from=build /opt/build/target/x86_64-unknown-linux-gnu/debug/hattivatti /opt/
 
 CMD ["/opt/hattivatti"]
\ No newline at end of file
-- 
GitLab