Spaces:
Build error
Build error
Commit
·
704d2d3
1
Parent(s):
99da5aa
fix: Clone repo before WORKDIR to avoid conflict
Browse files🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -67,16 +67,16 @@ RUN useradd -ms /bin/bash user
|
|
| 67 |
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 68 |
ENV PATH="/root/.local/bin:/usr/local/bin:/usr/bin:/bin:$PATH"
|
| 69 |
|
| 70 |
-
#
|
| 71 |
-
RUN
|
| 72 |
-
ENV VIRTUAL_ENV=/app/.venv
|
| 73 |
-
ENV PATH="/app/.venv/bin:$PATH"
|
| 74 |
|
| 75 |
# Set up working directory
|
| 76 |
WORKDIR /app
|
| 77 |
|
| 78 |
-
#
|
| 79 |
-
RUN
|
|
|
|
|
|
|
| 80 |
|
| 81 |
# Install Python dependencies
|
| 82 |
RUN sh -c "ulimit -n 4096 && uv sync --frozen --extra terrain --extra vis"
|
|
|
|
| 67 |
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 68 |
ENV PATH="/root/.local/bin:/usr/local/bin:/usr/bin:/bin:$PATH"
|
| 69 |
|
| 70 |
+
# Clone infinigen from GitHub first
|
| 71 |
+
RUN git clone https://github.com/bjoernbethge/infinigen.git /app
|
|
|
|
|
|
|
| 72 |
|
| 73 |
# Set up working directory
|
| 74 |
WORKDIR /app
|
| 75 |
|
| 76 |
+
# Create virtual environment
|
| 77 |
+
RUN uv venv /app/.venv
|
| 78 |
+
ENV VIRTUAL_ENV=/app/.venv
|
| 79 |
+
ENV PATH="/app/.venv/bin:$PATH"
|
| 80 |
|
| 81 |
# Install Python dependencies
|
| 82 |
RUN sh -c "ulimit -n 4096 && uv sync --frozen --extra terrain --extra vis"
|