mirror of
https://github.com/Yanyutin753/RefreshToV1Api.git
synced 2025-12-19 01:01:31 +08:00
[fix] image
This commit is contained in:
2
.github/workflows/docker-deploy.yml
vendored
2
.github/workflows/docker-deploy.yml
vendored
@@ -43,5 +43,5 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
wizerd/pandora-to-api:${{ steps.tag_name.outputs.tag }}
|
wizerd/pandora-to-api:${{ steps.tag_name.outputs.tag }}
|
||||||
wizerd/pandora-to-api:latest
|
wizerd/pandora-to-api:latest
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64
|
||||||
build-args: TARGETPLATFORM=${{ matrix.platform }}
|
build-args: TARGETPLATFORM=${{ matrix.platform }}
|
||||||
11
Dockerfile
11
Dockerfile
@@ -14,17 +14,6 @@ RUN chmod +x /app/start.sh
|
|||||||
|
|
||||||
RUN apt update && apt install -y jq
|
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 源为清华大学镜像
|
# 设置 pip 源为清华大学镜像
|
||||||
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user