-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (28 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
39 lines (28 loc) · 1.03 KB
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
38
39
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# Update package list and install packages
RUN apt update && apt install python3-pip python3-venv python3-dev -y
# Install additional packages
RUN apt install wget git iputils-ping lsof -y
# Install ffmpeg
RUN apt install ffmpeg -y
# Install build-essential
RUN apt install build-essential -y
# Install other packages
RUN apt install libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev pkg-config firefox openjdk-11-jdk iproute2 -y
WORKDIR /tmp
# Clone and build ffmpeg-debug-qp
RUN git clone https://github.com/slhck/ffmpeg-debug-qp.git \
&& cd ffmpeg-debug-qp \
&& make \
&& cp ffmpeg_debug_qp /usr/bin/ffmpeg_debug_qp \
&& chmod +x /usr/bin/ffmpeg_debug_qp
RUN pip3 install tcconfig
WORKDIR /usr/src/app
# Set up a virtual environment and install Python dependencies
ENV VIRTUAL_ENV=/opt/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
ENTRYPOINT python3 ./app.py --file ./aparat_file.txt