From 0c21a3cf576bb99b49efbeb4d026afbb2bdb4a3b Mon Sep 17 00:00:00 2001 From: Vikramjeet Date: Thu, 17 Oct 2024 20:35:15 +0530 Subject: [PATCH] Refactor Dockerfile to update file paths and improve code organization --- DockerFileFolder/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DockerFileFolder/Dockerfile b/DockerFileFolder/Dockerfile index 3e850f2..1cc0b60 100644 --- a/DockerFileFolder/Dockerfile +++ b/DockerFileFolder/Dockerfile @@ -35,14 +35,14 @@ ENV PATH="/home/user/venv/bin:$PATH" USER user # Copy requirements file -COPY --chown=user:user api/requirements.txt requirements.txt +COPY --chown=user:user api/requirements.txt /app/api/requirements.txt # Install Python dependencies RUN pip install --no-cache-dir -U pip setuptools wheel -RUN pip install --no-cache-dir -U -r requirements.txt +RUN pip install --no-cache-dir -U -r /app/api/requirements.txt # Copy the rest of the application code -COPY --chown=user:user . . +COPY --chown=user:user . /app # Install the application in editable mode RUN pip install --no-cache-dir -e .