Spaces:
Sleeping
Sleeping
Puneet Gopinath commited on
chore: add command to create virtual environment in Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -38,6 +38,10 @@ RUN if ! command -v uv >/dev/null 2>&1; then \
|
|
| 38 |
mv /root/.local/bin/uvx /usr/local/bin/uvx; \
|
| 39 |
fi
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
# Install dependencies using uv sync
|
| 42 |
# If uv.lock exists, use it; otherwise resolve on the fly
|
| 43 |
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
|
|
| 38 |
mv /root/.local/bin/uvx /usr/local/bin/uvx; \
|
| 39 |
fi
|
| 40 |
|
| 41 |
+
|
| 42 |
+
# Create virtual environment first
|
| 43 |
+
RUN uv venv
|
| 44 |
+
|
| 45 |
# Install dependencies using uv sync
|
| 46 |
# If uv.lock exists, use it; otherwise resolve on the fly
|
| 47 |
RUN --mount=type=cache,target=/root/.cache/uv \
|