From 9a04506b0d89b5dc71d02525ebaffef1613588e0 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Mon, 29 Jul 2024 00:48:16 +0800 Subject: [PATCH] Optimize Dockerfile by unifying download tools to wget Replace curl with wget to streamline the build process. Remove unnecessary curl installation to reduce dependency complexity and installation time. --- application/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Dockerfile b/application/Dockerfile index efe2cb3b..dde88503 100644 --- a/application/Dockerfile +++ b/application/Dockerfile @@ -10,7 +10,7 @@ RUN add-apt-repository ppa:deadsnakes/ppa # Install necessary packages and Python RUN apt-get update && \ - apt-get install -y --no-install-recommends gcc curl wget unzip libc6-dev python3.11 python3.11-distutils python3.11-venv && \ + apt-get install -y --no-install-recommends gcc wget unzip libc6-dev python3.11 python3.11-distutils python3.11-venv && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -27,7 +27,7 @@ RUN wget https://d3dg1063dc54p9.cloudfront.net/models/embeddings/mpnet-base-v2.z rm mpnet-base-v2.zip # Install Rust -RUN curl https://sh.rustup.rs -sSf | sh -s -- -y +RUN wget -q -O - https://sh.rustup.rs | sh -s -- -y # Clean up to reduce container size RUN apt-get remove --purge -y wget unzip && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*