diff --git a/Dockerfile b/Dockerfile index ca46b1e4404ca859f2f329dc712054aaf0c72555..ee02364411b7a275ed3f2ece99e37b9fe53d68b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ FROM ubuntu:jammy ENV DEBIAN_FRONTEND=noninteractive -ARG USERNAME -ARG PASSWORD RUN apt-get update && \ apt-get install -y \ @@ -29,11 +27,8 @@ RUN apt-get update && \ libgomp1 \ && rm -rf /var/lib/apt/lists -RUN ENCODED_USERNAME=$(printf '%s' "$USERNAME" | jq -sRr @uri) && \ - ENCODED_PASSWORD=$(printf '%s' "$PASSWORD" | jq -sRr @uri) && \ - curl -c cookies.txt -X POST -d "log=${ENCODED_USERNAME}&pwd=${ENCODED_PASSWORD}&wp-submit=1" "https://febio.org/wp-login.php" -v && \ - curl --output /tmp/febio.zip -b cookies.txt "https://febio.org/download/12171/?tmstv=1729879260" && \ - unset USERNAME PASSWORD ENCODED_USERNAME ENCODED_PASSWORD +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 && \ chmod +x FEBioStudio_linux-x64_2.7_FEBio_4.7.run && \