From db48139306bb35817da91d7ab00b14565486bc10 Mon Sep 17 00:00:00 2001 From: Vikramjeet Date: Thu, 17 Oct 2024 20:54:32 +0530 Subject: [PATCH] Refactor Dockerfile to use find command for locating requirements.txt and install dependencies, and install the application in editable mode --- DockerFileFolder/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DockerFileFolder/Dockerfile b/DockerFileFolder/Dockerfile index f58841a..aae3826 100644 --- a/DockerFileFolder/Dockerfile +++ b/DockerFileFolder/Dockerfile @@ -42,6 +42,9 @@ RUN pip install --no-cache-dir -U pip setuptools wheel # Use find to locate requirements.txt and install dependencies RUN find /app -name requirements.txt -exec pip install --no-cache-dir -r {} \; +# Install the application in editable mode +RUN pip install --no-cache-dir -e . + # Set working directory for the application WORKDIR /app/api