axebps commited on
Commit
cc72b7a
·
verified ·
1 Parent(s): 255d333

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+
3
+ RUN apt-get update && \
4
+ DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y --no-install-recommends tzdata wget ca-certificates proxychains4 xz-utils python3 python3-pip && \
5
+ sed -i 's/^socks.*/socks5 127.0.0.1 1080/' /etc/proxychains4.conf && \
6
+ wget -O wireproxy.tar.gz "https://github.com/pufferffish/wireproxy/releases/download/v1.0.9/wireproxy_linux_amd64.tar.gz" && \
7
+ tar -zxf wireproxy.tar.gz && \
8
+ mv wireproxy /usr/local/bin/ && \
9
+ rm wireproxy.tar.gz && \
10
+ wget -O ffmpeg.tar.xz "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2025-01-31-12-58/ffmpeg-N-118385-g0225fe857d-linux64-gpl.tar.xz" && \
11
+ tar -xf ffmpeg.tar.xz && \
12
+ mv ffmpeg-N-118385-g0225fe857d-linux64-gpl/bin/ffmpeg /usr/local/bin/ && \
13
+ rm -r ffmpeg* && \
14
+ userdel -r ubuntu && \
15
+ useradd -m -u 1000 user
16
+
17
+ USER user
18
+
19
+ ENV HOME=/home/user \
20
+ PATH=/home/user/.local/bin:$PATH
21
+
22
+ WORKDIR $HOME/app
23
+
24
+ COPY --chown=user . $HOME/app
25
+
26
+ RUN pip3 install --no-cache-dir flask --break-system-packages && \
27
+ wget -P /home/user/.local/bin/ "https://github.com/yt-dlp/yt-dlp/releases/download/2025.01.26/yt-dlp" && \
28
+ chmod +x /home/user/.local/bin/yt-dlp && \
29
+ chmod +x /home/user/app/entrypoint.sh
30
+
31
+ CMD ["/home/user/app/entrypoint.sh"]