Spaces:
Sleeping
Sleeping
Raymond Weitekamp
commited on
Commit
·
0b7876b
1
Parent(s):
5a3c190
Update Dockerfile to use uv with virtual environment
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -11,8 +11,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
# Create matplotlib config directory with proper permissions
|
| 12 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 13 |
|
| 14 |
-
# Install uv
|
| 15 |
-
RUN pip install uv
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Copy only pyproject.toml first to leverage Docker cache
|
| 18 |
COPY pyproject.toml .
|
|
|
|
| 11 |
# Create matplotlib config directory with proper permissions
|
| 12 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 13 |
|
| 14 |
+
# Install uv and create virtual environment
|
| 15 |
+
RUN pip install uv && \
|
| 16 |
+
uv venv /opt/venv
|
| 17 |
+
|
| 18 |
+
# Activate virtual environment
|
| 19 |
+
ENV PATH="/opt/venv/bin:$PATH"
|
| 20 |
|
| 21 |
# Copy only pyproject.toml first to leverage Docker cache
|
| 22 |
COPY pyproject.toml .
|