droboticflow/tools/drosync/packaging/linux/release-builder.Dockerfile
eust-w 48bdbb958f ✨ Let sudo drosync <command> reach the portable service daemon
Root used to look for state and the socket under /root and failed with exit
40 for every non-update command. On a verified portable install, root now
re-runs the command as the systemd service account with the service's
configuration, reusing the update broker's install and unit checks. Also add
clippy/rustfmt to the release builder for Linux lint runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 17:37:03 +08:00

14 lines
808 B
Docker

# Offline release builder for Linux x86_64 portable drosync bundles.
# Build with --platform linux/amd64. Ubuntu 22.04 keeps the GLIBC floor at 2.35; Rust matches rust-toolchain.toml.
FROM ubuntu:22.04
ARG RUST_TOOLCHAIN=1.89.0
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates curl build-essential pkg-config libdbus-1-dev binutils python3 \
&& rm -rf /var/lib/apt/lists/*
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup-init \
&& sh /tmp/rustup-init -y --profile minimal --default-toolchain "${RUST_TOOLCHAIN}" --component clippy --component rustfmt \
&& rm /tmp/rustup-init \
&& /root/.cargo/bin/cargo --version
ENV PATH=/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin