Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.10

WORKDIR /app

COPY . .

RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y

RUN pip3 install -r requirements.txt

CMD ["python","test.py","0.0.0.0:5000"]
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Flask==2.3.3
flask-socketio==5.2.0
opencv-python
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def message(json, methods=['GET','POST']):
socketio.emit('image', json )

if __name__== "__main__":
socketio.run(app,debug=True, host='127.0.0.1', port=5000)
socketio.run(app,debug=True, host='0.0.0.0', port=5000)