diff --git a/DockerfileLinux b/DockerfileLinux
index fe8127be05bf859298b2431f8577dcfc1078a987..bb2e8763b7b4d826859e337b4e31ab06ee337879 100644
--- a/DockerfileLinux
+++ b/DockerfileLinux
@@ -1,4 +1,8 @@
 FROM ubuntu:20.04
+ARG DEBIAN_FRONTEND=noninteractive
+
+# Configure timezone to prevent tzdata configuration from blocking the build
+ENV TZ=Europe/Rome
 
 # Update package manager cache
 RUN apt-get update
diff --git a/DockerfileWindows b/DockerfileWindows
index 5ee578509db2e65845098008c30afd12e50f49bc..ffdd6d25df5eaa07d64ade895f9d8f6d0e07e325 100644
--- a/DockerfileWindows
+++ b/DockerfileWindows
@@ -1,4 +1,8 @@
 FROM ubuntu:20.04
+ARG DEBIAN_FRONTEND=noninteractive
+
+# Configure timezone to prevent tzdata configuration from blocking the build
+ENV TZ=Europe/Rome
 
 # Update package manager cache
 RUN apt-get update