diff --git a/Dockerfile b/Dockerfile index fa12f96..77f99b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,10 +59,10 @@ CMD ["python", "main.py", "admin"] FROM oci.reg.darano.ir/mcr.microsoft.com/playwright:v1.62.0-noble AS worker -# Remove NodeSource apt source (times out from Iran) before anything else. -RUN rm -f /etc/apt/sources.list.d/nodesource.list \ - && rm -f /etc/apt/sources.list.d/nodesource.sources \ - && rm -f /etc/apt/keyrings/nodesource.gpg +# Remove ALL third-party apt sources before running apt-get update. +# The Playwright image ships with NodeSource, GitHub CLI, etc. that +# all time out from our VPS location (Iran). Only keep Ubuntu repos. +RUN rm -rf /etc/apt/sources.list.d/* # Install Python 3.12 + uv, then sync deps — all in one RUN. # Use a mirror for apt since the VPS has network restrictions (Iran).