Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -15,7 +15,7 @@ RUN pip install maturin
|
|
| 15 |
# Set working directory
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
-
# Copy your project files (app.py
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
# Install Python dependencies
|
|
@@ -27,5 +27,8 @@ RUN maturin build --release --manifest-path sample_rust/Cargo.toml
|
|
| 27 |
# Install the generated wheel
|
| 28 |
RUN pip install sample_rust/target/wheels/*.whl
|
| 29 |
|
| 30 |
-
#
|
|
|
|
|
|
|
|
|
|
| 31 |
CMD ["python3", "app.py"]
|
|
|
|
| 15 |
# Set working directory
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
# Copy your project files (including app.py and requirements.txt)
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
# Install Python dependencies
|
|
|
|
| 27 |
# Install the generated wheel
|
| 28 |
RUN pip install sample_rust/target/wheels/*.whl
|
| 29 |
|
| 30 |
+
# Expose port Hugging Face uses
|
| 31 |
+
EXPOSE 7860
|
| 32 |
+
|
| 33 |
+
# Start the Flask app
|
| 34 |
CMD ["python3", "app.py"]
|