Use Aliyun apt mirror for Docker builds
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
parent
16652ffdb0
commit
2a6216c706
@ -2,7 +2,11 @@ FROM node:24-bookworm-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && \
|
||||
RUN sed -i \
|
||||
-e 's|http://deb.debian.org/debian|https://mirrors.aliyun.com/debian|g' \
|
||||
-e 's|http://deb.debian.org/debian-security|https://mirrors.aliyun.com/debian-security|g' \
|
||||
/etc/apt/sources.list.d/debian.sources && \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends ca-certificates python3 make g++ && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
npm config set registry https://registry.npmmirror.com/ && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user