randydev commited on
Commit
b2caf67
1 Parent(s): 4a54ffd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -14
Dockerfile CHANGED
@@ -1,26 +1,37 @@
1
  FROM rendyprojects/python:latest
2
 
3
- RUN apt -qq update
4
- RUN apt -qq install -y --no-install-recommends \
 
 
5
  curl \
6
  git \
7
  gnupg2 \
8
  unzip \
9
  wget \
 
10
  python3-pip \
11
- ffmpeg \
12
- neofetch
13
-
14
- RUN useradd -m -u 1000 user
15
-
16
- USER user
17
-
18
- ENV HOME=/home/user \
19
- PATH=/home/user/.local/bin:$PATH
20
-
21
- WORKDIR $HOME/app
 
 
 
 
 
22
 
23
- COPY --chown=user . $HOME/app
 
 
 
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