diff --git a/Dockerfile b/Dockerfile index 4858c7e..7a76f76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,16 +19,19 @@ RUN apt-get update && \ apt-get autoremove && \ rm -rf /var/lib/{apt,dpkg,cache,log} -# Set up working directory and copy in code +# Set up working directory WORKDIR /app -COPY . . -# Install requirements -RUN pip install uv && \ - uv pip compile requirements.in -o requirements.txt && \ - uv pip install -r requirements.txt --system +# Install uv +RUN pip install uv + +# Copy input requirement and compile/install full requirements.txt +COPY requirements.in . +RUN uv pip compile requirements.in -o requirements.txt +RUN uv pip install -r requirements.txt --system -# Install DEA Intertidal and verify installation +# Copy remainder of files, install DEA Intertidal, and verify installation +COPY . . RUN uv pip install . --system && \ uv pip check && \ - dea-intertidal --help \ No newline at end of file + dea-intertidal --help