Spaces:
Runtime error
Runtime error
MohitGupta41 commited on
Commit ·
95ff693
1
Parent(s): 94a1398
trying to solve DB Problem
Browse files- Dockerfile +2 -2
- Frontend/Dockerfile +1 -1
- Src/Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -14,10 +14,10 @@ COPY Src ./Src
|
|
| 14 |
COPY Artifacts ./Artifacts
|
| 15 |
COPY models ./models/
|
| 16 |
|
| 17 |
-
EXPOSE
|
| 18 |
|
| 19 |
# Run FastAPI app using Uvicorn
|
| 20 |
-
CMD ["uvicorn", "Src.api.fastapi_app:app", "--host", "0.0.0.0", "--port", "
|
| 21 |
|
| 22 |
# FROM python:3.12-slim
|
| 23 |
|
|
|
|
| 14 |
COPY Artifacts ./Artifacts
|
| 15 |
COPY models ./models/
|
| 16 |
|
| 17 |
+
EXPOSE 7860
|
| 18 |
|
| 19 |
# Run FastAPI app using Uvicorn
|
| 20 |
+
CMD ["uvicorn", "Src.api.fastapi_app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 21 |
|
| 22 |
# FROM python:3.12-slim
|
| 23 |
|
Frontend/Dockerfile
CHANGED
|
@@ -12,7 +12,7 @@ RUN pip install --upgrade pip && \
|
|
| 12 |
# Copy only frontend code
|
| 13 |
COPY . .
|
| 14 |
|
| 15 |
-
EXPOSE
|
| 16 |
|
| 17 |
# Run Streamlit on container startup
|
| 18 |
CMD ["streamlit", "run", "App.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
| 12 |
# Copy only frontend code
|
| 13 |
COPY . .
|
| 14 |
|
| 15 |
+
EXPOSE 8501
|
| 16 |
|
| 17 |
# Run Streamlit on container startup
|
| 18 |
CMD ["streamlit", "run", "App.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
Src/Dockerfile
CHANGED
|
@@ -14,6 +14,6 @@ COPY . .
|
|
| 14 |
COPY Artifacts ./Artifacts/
|
| 15 |
COPY models ./models/
|
| 16 |
|
| 17 |
-
EXPOSE
|
| 18 |
|
| 19 |
-
CMD ["uvicorn", "Src.api.fastapi_app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 14 |
COPY Artifacts ./Artifacts/
|
| 15 |
COPY models ./models/
|
| 16 |
|
| 17 |
+
EXPOSE 7860
|
| 18 |
|
| 19 |
+
CMD ["uvicorn", "Src.api.fastapi_app:app", "--host", "0.0.0.0", "--port", "7860"]
|