e1250 commited on
Commit
2bd9d9e
·
1 Parent(s): 2f57136

fix: dockerfile to allow websockets

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. requirements.txt +1 -0
Dockerfile CHANGED
@@ -19,4 +19,4 @@ COPY . .
19
  EXPOSE 7860
20
 
21
  # Starting the server. 0.0.0.0 accepts connections from anywhere, not just local.
22
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
19
  EXPOSE 7860
20
 
21
  # Starting the server. 0.0.0.0 accepts connections from anywhere, not just local.
22
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--ws", "websockets"]
requirements.txt CHANGED
@@ -1,6 +1,7 @@
1
  fastapi
2
  uvicorn
3
  gunicorn
 
4
 
5
  ultralytics
6
 
 
1
  fastapi
2
  uvicorn
3
  gunicorn
4
+ websockets
5
 
6
  ultralytics
7