Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -11,11 +11,11 @@ COPY requirements.txt .
|
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
# 5. Copy only necessary app files
|
| 14 |
-
COPY model/ /model/
|
| 15 |
-
COPY api
|
| 16 |
|
| 17 |
# 6. Expose the port FastAPI will run on
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
# 7. Start the FastAPI app
|
| 21 |
-
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
# 5. Copy only necessary app files
|
| 14 |
+
COPY model/ /app/model/
|
| 15 |
+
COPY api/ /app/api/
|
| 16 |
|
| 17 |
# 6. Expose the port FastAPI will run on
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
# 7. Start the FastAPI app
|
| 21 |
+
CMD ["uvicorn", "api.api:app", "--host", "0.0.0.0", "--port", "7860"]
|