fix build

This commit is contained in:
jxxghp
2025-08-21 12:45:05 +08:00
parent daf0c08c4b
commit bfeb8d238a
2 changed files with 8 additions and 7 deletions
+1
View File
@@ -52,6 +52,7 @@ jobs:
file: docker/Dockerfile file: docker/Dockerfile
platforms: | platforms: |
linux/amd64 linux/amd64
linux/arm64/v8
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
+7 -7
View File
@@ -14,7 +14,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
curl \ curl \
busybox \ busybox \
jq \ jq \
wget wget \
&& \
if [ "$(uname -m)" = "x86_64" ]; \
then ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1; \
elif [ "$(uname -m)" = "aarch64" ]; \
then ln -s /usr/lib/aarch64-linux-musl/libc.so /lib/libc.musl-aarch64.so.1; \
fi
# 安装 Python 构建依赖并创建虚拟环境 # 安装 Python 构建依赖并创建虚拟环境
WORKDIR /app WORKDIR /app
@@ -84,12 +90,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \ ffmpeg \
nano \ nano \
&& dpkg-reconfigure --frontend noninteractive tzdata \ && dpkg-reconfigure --frontend noninteractive tzdata \
&& \
if [ "$(uname -m)" = "x86_64" ]; \
then ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1; \
elif [ "$(uname -m)" = "aarch64" ]; \
then ln -s /usr/lib/aarch64-linux-musl/libc.so /lib/libc.musl-aarch64.so.1; \
fi \
&& curl https://rclone.org/install.sh | bash \ && curl https://rclone.org/install.sh | bash \
&& apt-get autoremove -y \ && apt-get autoremove -y \
&& apt-get clean \ && apt-get clean \