Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -2,16 +2,15 @@
|
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# Set working directory
|
| 5 |
-
WORKDIR /app
|
| 6 |
|
| 7 |
# Copy files
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
-
COPY
|
| 12 |
|
| 13 |
# Expose port
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
# Start FastAPI using Uvicorn
|
| 17 |
-
CMD ["uvicorn", "app
|
|
|
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# Set working directory
|
|
|
|
| 5 |
|
| 6 |
# Copy files
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
+
COPY . .
|
| 11 |
|
| 12 |
# Expose port
|
| 13 |
EXPOSE 7860
|
| 14 |
|
| 15 |
# Start FastAPI using Uvicorn
|
| 16 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|