diff --git a/docker/DockerfileDeps b/docker/DockerfileDeps
index 3b80f417bf7a95f3cd2b04a228cb9b6ac0465a04..f5c751e4dc19c31e49258d40a4ec92e035e4e78d 100644
--- a/docker/DockerfileDeps
+++ b/docker/DockerfileDeps
@@ -21,16 +21,12 @@ RUN apt-get update && apt-get install -y python3-pip \
 
 RUN echo "*** Downloading RESTinio ***" \
     && mkdir restinio && cd restinio \
-    && wget https://github.com/Stiffstream/restinio/archive/v.0.5.1.tar.gz \
-    && ls -l && tar -xzf v.0.5.1.tar.gz \
-    && cd restinio-v.0.5.1/dev \
-    && sed -i.bak '/find_package(Boost*/d' CMakeLists.txt \
-	&& sed -i.bak '/find_package(PCRE)/d' CMakeLists.txt \
-	&& sed -i.bak '/find_package(PCRE2)/d' CMakeLists.txt \
-	&& sed -i.bak '/add_subdirectory(so_5)/d' CMakeLists.txt \
+    && wget https://github.com/Stiffstream/restinio/archive/v.0.5.1.1.tar.gz \
+    && ls -l && tar -xzf v.0.5.1.1.tar.gz \
+    && cd restinio-v.0.5.1.1/dev \
     && cmake -DCMAKE_INSTALL_PREFIX=/usr -DRESTINIO_TEST=OFF -DRESTINIO_SAMPLE=OFF \
              -DRESTINIO_INSTALL_SAMPLES=OFF -DRESTINIO_BENCH=OFF -DRESTINIO_INSTALL_BENCHES=OFF \
-             -DRESTINIO_FIND_DEPS=ON -DRESTINIO_USE_BOOST_ASIO=none . \
+             -DRESTINIO_FIND_DEPS=ON -DRESTINIO_ALLOW_SOBJECTIZER=Off -DRESTINIO_USE_BOOST_ASIO=none . \
     && cd ../../ && rm -rf restinio*
 
 #build msgpack from source
diff --git a/docker/DockerfileDepsLlvm b/docker/DockerfileDepsLlvm
index 3a43ea8b7936c6914b1acb4ca4ca6768e97edaeb..a005b552d01546a98e2b0045c839c96ca1901c6e 100644
--- a/docker/DockerfileDepsLlvm
+++ b/docker/DockerfileDepsLlvm
@@ -23,16 +23,12 @@ RUN apt-get update && apt-get install -y python3-pip \
 
 RUN echo "*** Downloading RESTinio ***" \
     && mkdir restinio && cd restinio \
-    && wget https://github.com/Stiffstream/restinio/archive/v.0.5.1.tar.gz \
-    && ls -l && tar -xzf v.0.5.1.tar.gz \
-    && cd restinio-v.0.5.1/dev \
-    && sed -i.bak '/find_package(Boost*/d' CMakeLists.txt \
-	&& sed -i.bak '/find_package(PCRE)/d' CMakeLists.txt \
-	&& sed -i.bak '/find_package(PCRE2)/d' CMakeLists.txt \
-	&& sed -i.bak '/add_subdirectory(so_5)/d' CMakeLists.txt \
+    && wget https://github.com/Stiffstream/restinio/archive/v.0.5.1.1.tar.gz \
+    && ls -l && tar -xzf v.0.5.1.1.tar.gz \
+    && cd restinio-v.0.5.1.1/dev \
     && cmake -DCMAKE_INSTALL_PREFIX=/usr -DRESTINIO_TEST=OFF -DRESTINIO_SAMPLE=OFF \
              -DRESTINIO_INSTALL_SAMPLES=OFF -DRESTINIO_BENCH=OFF -DRESTINIO_INSTALL_BENCHES=OFF \
-             -DRESTINIO_FIND_DEPS=ON -DRESTINIO_USE_BOOST_ASIO=none . \
+             -DRESTINIO_FIND_DEPS=ON -DRESTINIO_ALLOW_SOBJECTIZER=Off -DRESTINIO_USE_BOOST_ASIO=none . \
     && cd ../../ && rm -rf restinio*
 
 #build msgpack from source