forked from AirPheonixSaksham/Hacker-Uploader
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (27 loc) · 732 Bytes
/
Dockerfile
File metadata and controls
40 lines (27 loc) · 732 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
39
FROM python:3.10-alpine
# 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
RUN 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
RUN pip install --no-cache-dir -r requirements.txt
CMD ["sh", "-c", "python3 main.py"]