ddd
Some checks failed
Deploy control plane / Build, push, and deploy production (push) Failing after 10s
Release VPS agent / Build and publish Linux agent (push) Failing after 1m8s

This commit is contained in:
2026-09-24 23:39:54 +03:00
parent d912da6310
commit d8f98497b5
6 changed files with 53 additions and 32 deletions

16
agent/Dockerfile.release Normal file
View File

@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1.7
FROM --platform=$TARGETPLATFORM rust:1.85.1-alpine3.21 AS build
RUN apk add --no-cache musl-dev
WORKDIR /src
COPY agent/Cargo.toml agent/Cargo.lock ./
COPY agent/src ./src
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/src/target \
cargo build --locked --release && \
install -D -m 0755 /src/target/release/vps-agent /out/vps-agent
FROM scratch AS artifact
COPY --from=build /out/vps-agent /vps-agent