Spaces:
Configuration error
Configuration error
Delete Dockerfile.txt
Browse files- Dockerfile.txt +0 -18
Dockerfile.txt
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
# Use a lightweight Python image
|
| 2 |
-
FROM python:3.10-slim
|
| 3 |
-
|
| 4 |
-
# Set working directory inside the container
|
| 5 |
-
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Copy requirements and install them
|
| 8 |
-
COPY requirements.txt .
|
| 9 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
-
|
| 11 |
-
# Copy all remaining files (like app.py and the TFLite model)
|
| 12 |
-
COPY . .
|
| 13 |
-
|
| 14 |
-
# Expose the port FastAPI will run on
|
| 15 |
-
EXPOSE 7860
|
| 16 |
-
|
| 17 |
-
# Run the app with uvicorn
|
| 18 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|