-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 1011 Bytes
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 1011 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
37
38
# Use a Python 3.12.3 Alpine base image
FROM python:3.12-alpine3.20
# Set the working directory
WORKDIR /app
# Copy all files from the current directory to the container's /app directory
COPY . .
# Install necessary dependencies
RUN apk add --no-cache \
gcc \
libffi-dev \
musl-dev \
ffmpeg \
aria2 \
make \
g++ \
cmake && \
wget -q https://github.com/axiomatic-systems/Bento4/archive/v1.6.0-639.zip && \
unzip v1.6.0-639.zip && \
cd Bento4-1.6.0-639 && \
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc) && \
cp mp4decrypt /usr/local/bin/ &&\
cd ../.. && \
rm -rf Bento4-1.6.0-639 v1.6.0-639.zip
# Install Python dependencies
RUN pip3 install --no-cache-dir --upgrade pip \
&& pip3 install --no-cache-dir --upgrade -r sainibots.txt \
&& python3 -m pip install -U yt-dlp
# Set the command to run the application
CMD ["sh", "-c", "gunicorn app:app & python3 modules/main.py"]