2ch commited on
Commit
89943ab
·
verified ·
1 Parent(s): dfb1f14

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -3
Dockerfile CHANGED
@@ -1,13 +1,32 @@
1
  FROM archlinux:base
 
2
  ENV UV_INSTALL_DIR="/usr/local/bin"
3
  WORKDIR /app
4
  RUN pacman -Syu --noconfirm && \
5
  pacman -S --noconfirm curl && \
6
  pacman -Scc --noconfirm && \
7
- curl -LsSf https://astral.sh/uv/install.sh | sh && \
8
- uv init --python 3.13 --no-readme --vcs none . && \
 
9
  uv add ytdlp-simple-api
 
10
  ENV WEB_UI=True
11
  ENV HIDE_HOME=True
12
  ENV FILE_RETENTION_H=12
13
- CMD ["uv", "run", "-m", "ytdlp_simple_api"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM archlinux:base
2
+
3
  ENV UV_INSTALL_DIR="/usr/local/bin"
4
  WORKDIR /app
5
  RUN pacman -Syu --noconfirm && \
6
  pacman -S --noconfirm curl && \
7
  pacman -Scc --noconfirm && \
8
+ curl -LsSf https://astral.sh/uv/install.sh | sh
9
+
10
+ RUN uv init --python 3.13 --no-readme --vcs none . && \
11
  uv add ytdlp-simple-api
12
+
13
  ENV WEB_UI=True
14
  ENV HIDE_HOME=True
15
  ENV FILE_RETENTION_H=12
16
+
17
+ RUN printf '#!/bin/sh\n\
18
+ echo "Подмена DNS..."\n\
19
+ { \n\
20
+ echo "nameserver 84.21.189.133"; \n\
21
+ echo "nameserver 64.188.98.242"; \n\
22
+ echo "nameserver 2a12:bec4:1460:d5::2"; \n\
23
+ echo "nameserver 2a01:ecc0:2c1:2::2"; \n\
24
+ } > /etc/resolv.conf\n\
25
+ \n\
26
+ echo "Текущий resolv.conf:"\n\
27
+ cat /etc/resolv.conf\n\
28
+ \n\
29
+ exec "$@"\n' > /entrypoint.sh && \
30
+ chmod +x /entrypoint.sh
31
+ ENTRYPOINT ["/entrypoint.sh"]
32
+ CMD ["uv", "run", "-m", "ytdlp_simple_api"]