From 0acfa342ed1e908133ae22113119716919a4ca55 Mon Sep 17 00:00:00 2001
From: sparklyballs <sparklyballs@gmail.com>
Date: Thu, 13 Oct 2016 17:47:56 +0100
Subject: [PATCH] dependencies not loading for deluge due to openssl
 deprecation

---
 Dockerfile | 11 +++++++++--
 README.md  |  2 ++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index a4de47a..cc5f530 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,6 +11,9 @@ RUN \
 	python \
 	unrar \
 	unzip && \
+ apk add --no-cache \
+	--repository http://nl.alpinelinux.org/alpine/edge/main \
+	libressl2.4-libssl && \
  apk add --no-cache \
 	--repository http://nl.alpinelinux.org/alpine/edge/testing \
 	deluge && \
@@ -20,10 +23,13 @@ RUN \
 	g++ \
 	gcc \
 	libffi-dev \
-	openssl-dev \
 	py-pip \
 	python-dev && \
 
+ apk add --no-cache --virtual=build-dependencies2 \
+	--repository http://nl.alpinelinux.org/alpine/edge/main \
+	libressl-dev && \
+
 # install pip packages
  pip install --no-cache-dir -U \
 	crypto \
@@ -37,7 +43,8 @@ RUN \
 
 # cleanup
  apk del --purge \
-	build-dependencies && \
+	build-dependencies \
+	build-dependencies2 && \
  rm -rf \
 	/root/.cache
 
diff --git a/README.md b/README.md
index d4c4c45..64e46cb 100644
--- a/README.md
+++ b/README.md
@@ -73,6 +73,8 @@ Change the downloads location in the webui in Preferences->Downloads and use /do
 
 ## Versions
 
++ **30.09.16:** Switch to libressl as openssl deprecated from alpine linux and deluge dependency
+no longer installs.
 + **30.09.16:** Fix umask.
 + **09.09.16:** Add layer badges to README.
 + **30.08.16:** Use pip packages for some critical dependencies.
-- 
GitLab