forked from whitphx/streamlit-webrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (33 loc) · 776 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
pkg/build:
python scripts/release_check.py streamlit_webrtc/component.py
cd streamlit_webrtc/frontend && npm run build
poetry build
format:
poetry run isort . --resolve-all-configs
poetry run black .
poetry run flake8
docker/build:
# Set `--platform linux/amd64` because some packages do not work with Docker on M1 mac for now.
docker build \
--platform linux/amd64 \
-t streamlit-webrtc \
.
docker/run:
docker run \
--rm \
-it \
-p 8501:8501 \
-v `pwd`:/srv \
-e STREAMLIT_SERVER_FILE_WATCHER_TYPE=poll \
streamlit-webrtc \
poetry run streamlit run home.py
docker/shell:
docker run \
--rm \
-it \
-p 8501:8501 \
-v `pwd`:/srv \
-e SHELL=/bin/bash \
-e STREAMLIT_SERVER_FILE_WATCHER_TYPE=poll \
streamlit-webrtc \
poetry shell