| 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 1.1.1.1"; \n\ |
| echo "nameserver 1.0.0.1"; \n\ |
| echo "nameserver 2606:4700:4700::1111"; \n\ |
| echo "nameserver 2606:4700:4700::1002"; \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"] |