[fix] image

This commit is contained in:
Wizerd
2024-01-04 16:52:18 +08:00
parent 8d5e66fa84
commit be8031342c
2 changed files with 1 additions and 12 deletions

View File

@@ -43,5 +43,5 @@ jobs:
tags: |
wizerd/pandora-to-api:${{ steps.tag_name.outputs.tag }}
wizerd/pandora-to-api:latest
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64,linux/arm64
build-args: TARGETPLATFORM=${{ matrix.platform }}

View File

@@ -14,17 +14,6 @@ RUN chmod +x /app/start.sh
RUN apt update && apt install -y jq
RUN echo $TARGETPLATFORM
RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
apt install -y zlib1g-dev libjpeg-dev gcc curl && \
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
export PATH="/root/.cargo/bin:${PATH}"; \
fi
# 安装 Rust 编译器
ENV PATH="/root/.cargo/bin:${PATH}"
# 设置 pip 源为清华大学镜像
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple