File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,19 @@ RUN apt-get update && \
23
23
WORKDIR /app
24
24
25
25
# Install uv
26
- # RUN pip install uv==0.4.3
27
- COPY --from=ghcr.io/astral-sh/uv:0.4.3 /uv /bin/uv
26
+ RUN pip install uv
28
27
29
- # Copy input requirement and compile/install full requirements.txt
28
+ # Copy only requirements file first to leverage caching
30
29
COPY requirements.in .
31
- RUN uv pip compile requirements.in -o requirements.txt
32
- RUN uv pip install -r requirements.txt --system
33
30
34
- # Copy remainder of files, install DEA Intertidal, and verify installation
31
+ # Generate and install requirements
32
+ RUN uv pip compile requirements.in -o requirements.txt && \
33
+ uv pip install -r requirements.txt --system
34
+
35
+ # Copy the rest of the application code
35
36
COPY . .
37
+
38
+ # Install DEA Intertidal and verify installation
36
39
RUN uv pip install . --system && \
37
40
uv pip check && \
38
41
dea-intertidal --help
You can’t perform that action at this time.
0 commit comments