diff --git a/DockerFileFolder/Dockerfile b/DockerFileFolder/Dockerfile index 1cc0b60..451a1d2 100644 --- a/DockerFileFolder/Dockerfile +++ b/DockerFileFolder/Dockerfile @@ -34,16 +34,13 @@ ENV PATH="/home/user/venv/bin:$PATH" # Switch to the non-root user USER user -# Copy requirements file -COPY --chown=user:user api/requirements.txt /app/api/requirements.txt +# Copy the entire application code +COPY --chown=user:user . /app # Install Python dependencies RUN pip install --no-cache-dir -U pip setuptools wheel RUN pip install --no-cache-dir -U -r /app/api/requirements.txt -# Copy the rest of the application code -COPY --chown=user:user . /app - # Install the application in editable mode RUN pip install --no-cache-dir -e .