From 1c794346e438e7fd694ceb9e0128fc2e92b3abfe Mon Sep 17 00:00:00 2001
From: mdefende <mdefende@uab.edu>
Date: Mon, 4 Nov 2024 12:29:54 -0600
Subject: [PATCH] remove duplicated code and cookies file

---
 Dockerfile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 71c0dab..2f19e09 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
-- 
GitLab