File size: 688 Bytes
4976d30
 
f937f3d
4976d30
68df61a
4976d30
89943ab
 
 
4976d30
89943ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM archlinux:base
ENV UV_INSTALL_DIR="/usr/local/bin"
WORKDIR /app
RUN pacman -Syu --noconfirm && \
    pacman -S --noconfirm curl && \
    pacman -Scc --noconfirm && \
    curl -LsSf https://astral.sh/uv/install.sh | sh

RUN uv init --python 3.13 --no-readme --vcs none . && \
    uv add ytdlp-simple-api

RUN printf '#!/bin/sh\n\
{ \n\
echo "nameserver 84.21.189.133"; \n\
echo "nameserver 64.188.98.242"; \n\
echo "nameserver 2a12:bec4:1460:d5::2"; \n\
echo "nameserver 2a01:ecc0:2c1:2::2"; \n\
} > /etc/resolv.conf\n\
\n\
cat /etc/resolv.conf\n\
\n\
exec "$@"\n' > /entrypoint.sh && \
chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["uv", "run", "-m", "ytdlp_simple_api"]