mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: add platforms
This commit is contained in:
parent
d38a45cd80
commit
99ec75b3eb
1
.github/workflows/Deploy.yml
vendored
1
.github/workflows/Deploy.yml
vendored
@ -41,6 +41,7 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
@ -1,10 +1,4 @@
|
||||
# 添加多架构支持
|
||||
FROM --platform=linux/amd64 node:21-alpine AS base-amd64
|
||||
FROM --platform=linux/arm64 node:21-alpine AS base-arm64
|
||||
|
||||
# 选择基础镜像
|
||||
ARG TARGETARCH
|
||||
FROM base-${TARGETARCH} AS base
|
||||
FROM node:21-alpine AS base
|
||||
|
||||
FROM base AS deps
|
||||
RUN apk add --no-cache libc6-compat
|
||||
|
@ -6,7 +6,6 @@ import { error } from "console";
|
||||
import { unstable_noStore as noStore } from "next/cache";
|
||||
import getEnv from "./env-entry";
|
||||
|
||||
|
||||
export async function GetNezhaData() {
|
||||
noStore();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user