-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 780 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 780 Bytes
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
FROM ubuntu:19.04
ENV DEBIAN_FRONTEND=noninteractive
# upgrade env
RUN apt update
RUN apt upgrade -y
# install python3 and pip
RUN apt install python3 -y
RUN apt install python3-pip -y
RUN apt install python3-dev -y
RUN pip3 install --upgrade pip
# for aiortc
# https://github.com/aiortc/aiortc#requirements
RUN apt install libavdevice-dev -y
RUN apt install libavfilter-dev -y
RUN apt install libopus-dev -y
RUN apt install libvpx-dev -y
RUN apt install pkg-config -y
# not listed but needed...
RUN apt install libopencv-dev -y
# for example app
# https://github.com/aiortc/aiortc/tree/master/examples/server#running
RUN pip install aiortc
RUN pip install aiohttp
RUN pip install opencv-python
EXPOSE 8080
COPY ./src /workspace
WORKDIR /workspace
CMD python3 ./server.py