mirror of
https://github.com/wisdgod/cursor-api.git
synced 2025-12-24 13:38:01 +08:00
0.1.3-rc.5.2.4
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user