Spaces:
Running
Running
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
|
@@ -22,20 +22,14 @@ ENV PATH="/root/.cargo/bin:${PATH}"
|
|
| 22 |
# Set the working directory
|
| 23 |
WORKDIR /app
|
| 24 |
|
| 25 |
-
# Copy
|
| 26 |
-
COPY
|
| 27 |
|
| 28 |
-
# Install Python dependencies
|
| 29 |
# Using uv for faster builds
|
| 30 |
RUN pip install --no-cache-dir uv && \
|
| 31 |
uv pip install --system --no-cache .
|
| 32 |
|
| 33 |
-
# Copy the rest of the application
|
| 34 |
-
COPY . .
|
| 35 |
-
|
| 36 |
-
# Build the Rust engine
|
| 37 |
-
RUN maturin develop --manifest-path engine_rust_src/Cargo.toml --release
|
| 38 |
-
|
| 39 |
# Compile card data
|
| 40 |
RUN python -m compiler.main
|
| 41 |
|
|
|
|
| 22 |
# Set the working directory
|
| 23 |
WORKDIR /app
|
| 24 |
|
| 25 |
+
# Copy the entire application early so maturin can see engine_rust_src/Cargo.toml
|
| 26 |
+
COPY . .
|
| 27 |
|
| 28 |
+
# Install Python dependencies and build the Rust engine
|
| 29 |
# Using uv for faster builds
|
| 30 |
RUN pip install --no-cache-dir uv && \
|
| 31 |
uv pip install --system --no-cache .
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# Compile card data
|
| 34 |
RUN python -m compiler.main
|
| 35 |
|