From 7116786615e9c53d99e3b74d977d6aa9549c70d8 Mon Sep 17 00:00:00 2001
From: Matthew Defenderfer <mdefende@uab.edu>
Date: Tue, 29 Oct 2024 16:14:15 -0500
Subject: [PATCH] add -p to redirect archive output to a different file so I
 don't have to change the installer name for each new version

---
 Dockerfile | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 6b7f231..cf5f7b9 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
 
-- 
GitLab