|
|
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 ' |
|
|
{ \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"] |