diff --git a/infra/Dockerfile.server b/infra/Dockerfile.server index bc16b97..4c7d45d 100644 --- a/infra/Dockerfile.server +++ b/infra/Dockerfile.server @@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \ musl-tools \ && rm -rf /var/lib/apt/lists/* -RUN rustup target add aarch64-unknown-linux-musl +RUN rustup target add armv7-unknown-linux-gnueabihf WORKDIR /build @@ -14,12 +14,12 @@ WORKDIR /build COPY Cargo.toml Cargo.lock* ./ COPY server/Cargo.toml ./server/ RUN mkdir -p server/src && echo 'fn main(){}' > server/src/main.rs -RUN cargo build --release --target aarch64-unknown-linux-musl -p hiy-server 2>/dev/null || true +RUN cargo build --release --target armv7-unknown-linux-gnueabihf -p hiy-server 2>/dev/null || true RUN rm -f server/src/main.rs # Build actual source. COPY server/src ./server/src -RUN touch server/src/main.rs && cargo build --release --target aarch64-unknown-linux-musl -p hiy-server +RUN touch server/src/main.rs && cargo build --release --target armv7-unknown-linux-gnueabihf -p hiy-server # ── Runtime stage ───────────────────────────────────────────────────────────── FROM debian:bookworm-slim @@ -34,7 +34,7 @@ RUN apt-get update && apt-get install -y \ docker.io \ && rm -rf /var/lib/apt/lists/* -COPY --from=builder /build/target/aarch64-unknown-linux-musl/release/hiy-server /usr/local/bin/hiy-server +COPY --from=builder /build/target/armv7-unknown-linux-gnueabihf/release/hiy-server /usr/local/bin/hiy-server WORKDIR /app