diff --git a/dockerfiles/Dockerfile.dspace b/dockerfiles/Dockerfile.dspace
index cfb4057b9e32878b5e87c1d2412f22969679cb80..45df5b0ed546c44684f525ea5aaf9b27ebcc931d 100644
--- a/dockerfiles/Dockerfile.dspace
+++ b/dockerfiles/Dockerfile.dspace
@@ -16,16 +16,20 @@ LABEL maintainer="Alexander König <Alexander.Koenig@eurac.edu>" \
       maintainer="Egon W. Stemle <egon.stemle@eurac.edu>" \
       org.label-schema.vcs-url=$LABEL_VCS_URL
 
+#
+ENV DEBIAN_FRONTEND=noninteractive
 # Set "APT::Get::{Assume-Yes, Fix-Broken} to true"
-RUN echo 'APT { GET { Assume-Yes "true"; }; };\nAPT { GET { Fix-Broken "true"; }; };' \
-    >> /etc/apt/apt.conf
+RUN echo 'APT { GET { Assume-Yes "true"; }; };' \
+        >> /etc/apt/apt.conf && \
+    echo 'APT { GET { Fix-Broken "true"; }; };' \
+        >> /etc/apt/apt.conf
 
 # use fast(er) local mirrors
 # http://layer0.authentise.com/docker-4-useful-tips-you-may-not-know-about.html
 RUN echo "deb mirror://mirrors.ubuntu.com/mirrors.txt xenial main restricted universe multiverse" > /etc/apt/sources.list && \
     echo "deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
     echo "deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-security main restricted universe multiverse" >> /etc/apt/sources.list && \
-    DEBIAN_FRONTEND=noninteractive apt-get update && \
+    apt-get update && \
     apt-get upgrade --show-progress
 
 # install cpanm and dependencies