diff --git a/Dockerfile b/Dockerfile
index 71c0dab5ddc70566eef2a0c7e4e11fb5ebc188ba..2f19e0911d1df06e94846186065e9af915b96fca 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,8 @@ RUN apt-get update && \
     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 curl --output /tmp/febio.zip -b /tmp/cookies.txt "https://febio.org/download/12171/?tmstv=1729879260" && \
+    rm /tmp/cookies.txt
 
 RUN apt-get install -y \
     binutils \
@@ -29,9 +30,6 @@ RUN apt-get install -y \
     zip \
     && rm -rf /var/lib/apt/lists
 
-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 -p /tmp/febio.zip > /tmp/febio.run && \
     chmod +x /tmp/febio.run && \
     rm /tmp/febio.zip