Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 . .
|