build: 默认 Alpine 源改为腾讯云(阿里云源在 NAS 容器内极慢)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@ PUID=1000
|
|||||||
PGID=1001
|
PGID=1001
|
||||||
LEGACY_HISTORY_DIR=/vol1/1000/Apps/163-music-dl
|
LEGACY_HISTORY_DIR=/vol1/1000/Apps/163-music-dl
|
||||||
NPM_REGISTRY=https://registry.npmmirror.com
|
NPM_REGISTRY=https://registry.npmmirror.com
|
||||||
ALPINE_MIRROR=mirrors.aliyun.com
|
ALPINE_MIRROR=mirrors.cloud.tencent.com
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ RUN npm run build
|
|||||||
|
|
||||||
FROM ${NODE_IMAGE}
|
FROM ${NODE_IMAGE}
|
||||||
ARG NPM_REGISTRY=https://registry.npmmirror.com
|
ARG NPM_REGISTRY=https://registry.npmmirror.com
|
||||||
ARG ALPINE_MIRROR=mirrors.aliyun.com
|
ARG ALPINE_MIRROR=mirrors.cloud.tencent.com
|
||||||
RUN if [ -n "${ALPINE_MIRROR}" ]; then sed -i "s#dl-cdn.alpinelinux.org#${ALPINE_MIRROR}#g" /etc/apk/repositories; fi \
|
RUN if [ -n "${ALPINE_MIRROR}" ]; then sed -i "s#dl-cdn.alpinelinux.org#${ALPINE_MIRROR}#g" /etc/apk/repositories; fi \
|
||||||
&& apk add --no-cache ffmpeg su-exec tzdata
|
&& apk add --no-cache ffmpeg su-exec tzdata
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmmirror.com}
|
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmmirror.com}
|
||||||
ALPINE_MIRROR: ${ALPINE_MIRROR:-mirrors.aliyun.com}
|
ALPINE_MIRROR: ${ALPINE_MIRROR:-mirrors.cloud.tencent.com}
|
||||||
image: shengxia:latest
|
image: shengxia:latest
|
||||||
container_name: shengxia
|
container_name: shengxia
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user