diff --git a/Dockerfile b/Dockerfile
index a4de47abc64164fe2e5cf951d946d7f70130a3de..cc5f530f3c65bdc3be514c2ebd3a98eb61507b7c 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 d4c4c4562b3e838a4ffc00dbff54571622b094e7..64e46cb7c194d334e0ed93ecbed7757df2a74aa3 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.