diff --git a/Dockerfile b/Dockerfile index b713f3e..7fcc8da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,10 +67,15 @@ RUN printf 'Types: deb\nURIs: http://ubuntu.parsvds.com/ubuntu/\nSuites: noble n python3 python3-venv \ && rm -rf /var/lib/apt/lists/* \ && curl -LsSf https://astral.sh/uv/install.sh | sh \ - && . /usr/local/env 2>/dev/null || true + && . /usr/local/env 2>/dev/null || true \ + || pip install --break-system-packages \ + --index-url https://pypi.reg.darano.ir/simple/ \ + --trusted-host pypi.reg.darano.ir \ + uv ENV PATH="/usr/local/bin:$PATH" \ UV_DEFAULT_INDEX="https://pypi.reg.darano.ir" \ + PIP_INDEX_URL="https://pypi.reg.darano.ir/simple/" \ # Chromium is pre-installed at /usr/bin/chromium CHROME_BINARY=/usr/bin/chromium \ CHROMEDRIVER_PATH=/usr/bin/chromedriver \