Spaces:
Sleeping
Sleeping
AI4M initial commit deploy
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# Set work directory
|
| 5 |
-
WORKDIR /
|
| 6 |
|
| 7 |
# Copy project files
|
| 8 |
-
COPY . /
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
@@ -14,4 +14,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
# Start FastAPI app with Uvicorn
|
| 17 |
-
CMD ["uvicorn", "app
|
|
|
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# Set work directory
|
| 5 |
+
WORKDIR /api
|
| 6 |
|
| 7 |
# Copy project files
|
| 8 |
+
COPY . /api
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
# Start FastAPI app with Uvicorn
|
| 17 |
+
CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "7860"]
|