Spaces:
Sleeping
Sleeping
Commit
·
c933909
1
Parent(s):
261e937
backend deploymemt
Browse files- Dockerfile +2 -2
- main.py +3 -3
Dockerfile
CHANGED
|
@@ -15,9 +15,9 @@ RUN pip install -r requirement.txt
|
|
| 15 |
ENV PYTHONPATH=/app
|
| 16 |
|
| 17 |
# Expose the required port
|
| 18 |
-
EXPOSE
|
| 19 |
|
| 20 |
# Start FastAPI with the correct module path
|
| 21 |
# CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 22 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "
|
| 23 |
|
|
|
|
| 15 |
ENV PYTHONPATH=/app
|
| 16 |
|
| 17 |
# Expose the required port
|
| 18 |
+
EXPOSE 7860
|
| 19 |
|
| 20 |
# Start FastAPI with the correct module path
|
| 21 |
# CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 22 |
+
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 23 |
|
main.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
-
from routes.continents import router
|
| 3 |
-
from logger import logger
|
| 4 |
-
from routes.continents import router
|
| 5 |
|
| 6 |
app = FastAPI()
|
| 7 |
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
from backend.routes.continents import router
|
| 3 |
+
from backend.logger import logger
|
| 4 |
+
from backend.routes.continents import router
|
| 5 |
|
| 6 |
app = FastAPI()
|
| 7 |
|