diff --git a/Dockerfile b/Dockerfile
index 6b7f231f76d98c5884f2b55d22805024348b48ac..cf5f7b9d9ed66304fd0ff60e288a51b9a334b78c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,9 +2,14 @@ FROM ubuntu:jammy
 
 ENV DEBIAN_FRONTEND=noninteractive
 
+# install curl and download the febio installer first to prevent any site timeout for the cookies
 RUN apt-get update && \
-    apt-get install -y \
-    curl \
+    apt-get install curl -y
+
+COPY cookies.txt /tmp/cookies.txt
+RUN curl --output /tmp/febio.zip -b /tmp/cookies.txt "https://febio.org/download/12171/?tmstv=1729879260"
+
+RUN apt-get install -y \
     libgomp1 \
     libglu1-mesa \
     libx11-6 \
@@ -26,7 +31,7 @@ RUN apt-get update && \
 COPY cookies.txt /tmp/cookies.txt
 RUN curl --output /tmp/febio.zip -b /tmp/cookies.txt "https://febio.org/download/12171/?tmstv=1729879260"
 
-RUN unzip /tmp/febio.zip > /tmp/febio.run && \
+RUN unzip -p /tmp/febio.zip > /tmp/febio.run && \
     chmod +x /tmp/febio.run && \
     rm /tmp/febio.zip