Remove NodeSource apt source that times out from Iran
The Playwright image ships with a NodeSource apt repository that times out on apt-get update. Remove the sources file and GPG key before running apt-get update so it only uses the local mirror. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -59,6 +59,11 @@ CMD ["python", "main.py", "admin"]
|
|||||||
|
|
||||||
FROM oci.reg.darano.ir/mcr.microsoft.com/playwright:v1.62.0-noble AS worker
|
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
|
||||||
|
|
||||||
# Install Python 3.12 + uv, then sync deps — all in one RUN.
|
# Install Python 3.12 + uv, then sync deps — all in one RUN.
|
||||||
# Use a mirror for apt since the VPS has network restrictions (Iran).
|
# Use a mirror for apt since the VPS has network restrictions (Iran).
|
||||||
RUN printf 'Types: deb\nURIs: http://ubuntu.parsvds.com/ubuntu/\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' \
|
RUN printf 'Types: deb\nURIs: http://ubuntu.parsvds.com/ubuntu/\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' \
|
||||||
|
|||||||
Reference in New Issue
Block a user