-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (28 loc) · 935 Bytes
/
Dockerfile
File metadata and controls
30 lines (28 loc) · 935 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
#FROM linuxserver/ffmpeg
FROM ubuntu:jammy
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y gpg ca-certificates && \
echo -n "deb https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu $(cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d "=" -f 2) main" > /etc/apt/sources.list.d/deadsnakes.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv F23C5A6CF475977595C89F51BA6932366A755776 && \
apt-get update && \
apt-get install -y \
ffmpeg \
python3.8 \
python3.8-distutils \
alsa-base \
alsa-utils \
libsndfile1-dev \
libgl1-mesa-glx \
v4l-utils \
&& apt-get clean
ADD https://bootstrap.pypa.io/get-pip.py .
RUN python3.8 get-pip.py && rm get-pip.py
RUN pip install \
flask \
flask-socketio \
tflite-runtime \
pillow \
camerons-python
COPY server /server
CMD python3.8 server/app.py