AdrienB134 commited on
Commit
50ebdb6
·
verified ·
1 Parent(s): e7363be

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -9,11 +9,15 @@ RUN apt-get update && apt-get install -y \
9
  poppler-utils \
10
  curl \
11
  && rm -rf /var/lib/apt/lists/* \
12
- && curl -LsSf https://astral.sh/uv/install.sh | sh
 
 
 
 
 
13
 
14
- RUN source $HOME/.local/bin/env
15
  # Install Python dependencies using uv
16
- RUN uv pip install -r pyproject.toml
17
 
18
  # Copy the rest of the application
19
  COPY . .
 
9
  poppler-utils \
10
  curl \
11
  && rm -rf /var/lib/apt/lists/* \
12
+ && curl -LsSf https://astral.sh/uv/install.sh | sh \
13
+ && echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc \
14
+ && . ~/.bashrc
15
+
16
+ # Copy requirements first to leverage Docker cache
17
+ COPY requirements.txt .
18
 
 
19
  # Install Python dependencies using uv
20
+ RUN . ~/.bashrc && uv pip install -r pyproject.toml
21
 
22
  # Copy the rest of the application
23
  COPY . .