Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -20,11 +20,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 20 |
COPY requirements.txt .
|
| 21 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
-
# Copy app
|
| 24 |
-
COPY .
|
|
|
|
| 25 |
|
| 26 |
# Expose port
|
| 27 |
EXPOSE 7860
|
| 28 |
|
| 29 |
# Run FastAPI app with uvicorn
|
| 30 |
-
CMD ["uvicorn", "
|
|
|
|
| 20 |
COPY requirements.txt .
|
| 21 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
+
# Copy app code
|
| 24 |
+
COPY . /app
|
| 25 |
+
WORKDIR /app
|
| 26 |
|
| 27 |
# Expose port
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
# Run FastAPI app with uvicorn
|
| 31 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|