Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +25 -14
Dockerfile
CHANGED
@@ -1,26 +1,37 @@
|
|
1 |
FROM rendyprojects/python:latest
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
5 |
curl \
|
6 |
git \
|
7 |
gnupg2 \
|
8 |
unzip \
|
9 |
wget \
|
|
|
10 |
python3-pip \
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
|
|
|
|
|
|
24 |
|
25 |
RUN mkdir -p uploads && chmod 777 uploads
|
26 |
|
|
|
1 |
FROM rendyprojects/python:latest
|
2 |
|
3 |
+
# Install necessary dependencies
|
4 |
+
RUN apt -qq update && \
|
5 |
+
apt -qq install -y --no-install-recommends \
|
6 |
+
ffmpeg \
|
7 |
curl \
|
8 |
git \
|
9 |
gnupg2 \
|
10 |
unzip \
|
11 |
wget \
|
12 |
+
python3-dev \
|
13 |
python3-pip \
|
14 |
+
libavformat-dev \
|
15 |
+
libavcodec-dev \
|
16 |
+
libavdevice-dev \
|
17 |
+
libavfilter-dev \
|
18 |
+
libavutil-dev \
|
19 |
+
libswscale-dev \
|
20 |
+
libswresample-dev \
|
21 |
+
neofetch && \
|
22 |
+
apt-get clean && \
|
23 |
+
rm -rf /var/lib/apt/lists/
|
24 |
+
|
25 |
+
WORKDIR /app
|
26 |
+
|
27 |
+
COPY . .
|
28 |
+
COPY requirements.txt .
|
29 |
+
RUN pip3 install -r requirements.txt
|
30 |
|
31 |
+
RUN chown -R 1000:0 .
|
32 |
+
RUN chmod 777 .
|
33 |
+
RUN chown -R 1000:0 /app
|
34 |
+
RUN chmod 777 /app
|
35 |
|
36 |
RUN mkdir -p uploads && chmod 777 uploads
|
37 |
|