Skip to content

Commit db9554f

Browse files
authored
Update Dockerfile
1 parent 22deadc commit db9554f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,19 @@ RUN apt-get update && \
2323
WORKDIR /app
2424

2525
# 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
2827

29-
# Copy input requirement and compile/install full requirements.txt
28+
# Copy only requirements file first to leverage caching
3029
COPY requirements.in .
31-
RUN uv pip compile requirements.in -o requirements.txt
32-
RUN uv pip install -r requirements.txt --system
3330

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
3536
COPY . .
37+
38+
# Install DEA Intertidal and verify installation
3639
RUN uv pip install . --system && \
3740
uv pip check && \
3841
dea-intertidal --help

0 commit comments

Comments
 (0)