Spaces:
Sleeping
Sleeping
Commit ·
331c2ea
1
Parent(s): 16bf429
Fix Dockerfile: remove invalid .venv before uv sync
Browse files- Dockerfile +1 -0
Dockerfile
CHANGED
|
@@ -41,6 +41,7 @@ RUN if ! command -v uv >/dev/null 2>&1; then \
|
|
| 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 \
|
|
|
|
| 44 |
if [ -f uv.lock ]; then \
|
| 45 |
uv sync --frozen --no-install-project --no-editable; \
|
| 46 |
else \
|
|
|
|
| 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 \
|
| 44 |
+
rm -rf .venv && \
|
| 45 |
if [ -f uv.lock ]; then \
|
| 46 |
uv sync --frozen --no-install-project --no-editable; \
|
| 47 |
else \
|