0.1.3-rc.5.2.4

This commit is contained in:
wisdgod
2025-04-05 17:21:49 +08:00
parent f538005030
commit 5071997ffc
50 changed files with 1591 additions and 3869 deletions

View File

@@ -1,5 +1,5 @@
ARG TARGETARCH
FROM --platform=linux/${TARGETARCH} rust:1-slim-bookworm as builder
FROM --platform=linux/${TARGETARCH} rustlang/rust:nightly-bookworm-slim as builder
ARG TARGETARCH
@@ -10,7 +10,7 @@ RUN apt-get update && \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN case "$TARGETARCH" in amd64) TARGET_CPU="x86-64-v2" ;; arm64) TARGET_CPU="neoverse-n1" ;; *) echo "Unsupported architecture: $TARGETARCH" && exit 1 ;; esac && RUSTFLAGS="-C link-arg=-s -C target-cpu=$TARGET_CPU" cargo build --release && cp target/release/cursor-api /app/cursor-api
RUN case "$TARGETARCH" in amd64) TARGET_CPU="x86-64-v2" ;; arm64) TARGET_CPU="neoverse-n1" ;; *) echo "Unsupported architecture: $TARGETARCH" && exit 1 ;; esac && RUSTFLAGS="-C link-arg=-s -C target-cpu=$TARGET_CPU" cargo +nightly build --release && cp target/release/cursor-api /app/cursor-api
# 运行阶段
ARG TARGETARCH