File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM python:3.9
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ ffmpeg \
5
+ libgl1 \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ ENV POETRY_VIRTUALENVS_IN_PROJECT=false
9
+
10
+ RUN pip install -U poetry
11
+
12
+ ADD pyproject.toml /srv/pyproject.toml
13
+ ADD poetry.lock /srv/poetry.lock
14
+
15
+ WORKDIR /srv
16
+
17
+ RUN poetry install
Original file line number Diff line number Diff line change 7
7
isort .
8
8
black .
9
9
flake8
10
+
11
+ docker/build :
12
+ # Set `--platform linux/amd64` because some packages do not work with Docker on M1 mac for now.
13
+ docker build \
14
+ --platform linux/amd64 \
15
+ -t streamlit-webrtc \
16
+ .
17
+
18
+ docker/run :
19
+ docker run \
20
+ --rm \
21
+ -it \
22
+ -p 8501:8501 \
23
+ -v ` pwd` :/srv \
24
+ streamlit-webrtc \
25
+ poetry run streamlit run app.py
26
+
27
+ docker/shell :
28
+ docker run \
29
+ --rm \
30
+ -it \
31
+ -p 8501:8501 \
32
+ -v ` pwd` :/srv \
33
+ -e SHELL=/bin/bash \
34
+ streamlit-webrtc \
35
+ poetry shell
You can’t perform that action at this time.
0 commit comments