From e0ee6ff7c68bdfbad643086575b0d5d14b3d0d0c Mon Sep 17 00:00:00 2001 From: Quentin Bouteiller Date: Mon, 12 Jun 2023 22:06:51 +0200 Subject: [PATCH] Fix caching issue Replaced RUN curl with ADD to prevent archive caching. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59fde17..bb68069 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,10 +17,10 @@ RUN chown root:root /entrypoint.sh && \ # Create a dedicated user for Akkoma RUN adduser --system --shell /bin/false --home /opt/akkoma akkoma -# Clone the release build into a temporary directory and unpack it +# Download the release build into a temporary directory and unpack it # then move the release to the home directory and delete temporary files -RUN curl 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' -o /tmp/akkoma.zip && \ - unzip /tmp/akkoma.zip -d /tmp/ && \ +ADD 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' /tmp/akkoma.zip +RUN unzip /tmp/akkoma.zip -d /tmp/ && \ mv /tmp/release/* /opt/akkoma && \ rmdir /tmp/release && \ rm /tmp/akkoma.zip && \