Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -23,7 +23,8 @@ COPY . /app
|
|
| 23 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
# Expose the port
|
| 26 |
-
EXPOSE
|
| 27 |
|
| 28 |
# Command to start Uvicorn
|
| 29 |
-
CMD ["
|
|
|
|
|
|
| 23 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
# Expose the port
|
| 26 |
+
EXPOSE 7860
|
| 27 |
|
| 28 |
# Command to start Uvicorn
|
| 29 |
+
CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"]
|
| 30 |
+
|