Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -15,14 +15,14 @@ RUN pip install maturin
|
|
| 15 |
# Set working directory
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
-
# Copy
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
-
# Build the
|
| 22 |
RUN maturin build --release --manifest-path sample_rust/Cargo.toml
|
| 23 |
|
| 24 |
-
# Install the built wheel
|
| 25 |
RUN pip install sample_rust/target/wheels/*.whl
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
CMD ["python3"]
|
|
|
|
| 15 |
# Set working directory
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
# Copy all project files (including app.py and sample_rust)
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
+
# Build the wheel using maturin
|
| 22 |
RUN maturin build --release --manifest-path sample_rust/Cargo.toml
|
| 23 |
|
| 24 |
+
# Install the built wheel
|
| 25 |
RUN pip install sample_rust/target/wheels/*.whl
|
| 26 |
|
| 27 |
+
# Run your Python script automatically
|
| 28 |
+
CMD ["python3", "app.py"]
|