Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -20,8 +20,13 @@ RUN pip install maturin
|
|
| 20 |
# Copy your codebase
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
-
#
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# Install Python dependencies
|
| 27 |
RUN pip install -r requirements.txt
|
|
|
|
| 20 |
# Copy your codebase
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
+
# Install Rust + Python + maturin earlier...
|
| 24 |
+
|
| 25 |
+
# Build the Python extension
|
| 26 |
+
RUN maturin build --release --manifest-path sample_rust/Cargo.toml
|
| 27 |
+
|
| 28 |
+
# Install the generated wheel
|
| 29 |
+
RUN pip install target/wheels/*.whl
|
| 30 |
|
| 31 |
# Install Python dependencies
|
| 32 |
RUN pip install -r requirements.txt
|