diff --git a/substrate/Dockerfile b/substrate/Dockerfile
index 0271db8d1461d7a8c58fb52f9f6306e5ca833e2e..1ebc7b04aa87e5cc95838444d39229c52201e917 100644
--- a/substrate/Dockerfile
+++ b/substrate/Dockerfile
@@ -5,13 +5,15 @@ FROM phusion/baseimage:0.10.2 as builder
 LABEL maintainer="chevdor@gmail.com"
 LABEL description="This is the build stage for Substrate. Here we create the binary."
 
+ENV DEBIAN_FRONTEND=noninteractive
+
 ARG PROFILE=release
 WORKDIR /substrate
 
 COPY . /substrate
 
 RUN apt-get update && \
-	apt-get dist-upgrade -y && \
+	apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" && \
 	apt-get install -y cmake pkg-config libssl-dev git clang
 
 RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \