From 0da38954bfdcc55f3d4cb6fd7bbee8015f7674e7 Mon Sep 17 00:00:00 2001 From: Robbi Bishop-Taylor Date: Tue, 3 Sep 2024 13:19:09 +1000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index c83f015..239ab1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,21 +22,16 @@ RUN apt-get update && \ # Set up working directory WORKDIR /app -COPY . . - -# Install uv -RUN pip install uv - -# Copy only requirements file first to leverage caching +# Copy requirements file first +COPY requirements.in . -# COPY requirements.in . - -# Generate and install requirements -RUN uv pip compile requirements.in -o requirements.txt && \ +# Install uv and requirements +RUN pip install uv && \ + uv pip compile requirements.in -o requirements.txt && \ uv pip install -r requirements.txt --system -# # Copy the rest of the application code -# COPY . . +# Now copy the rest of the files +COPY . . # Install DEA Intertidal and verify installation RUN uv pip install . --system && \