mirror of
https://github.com/cfal/shoes.git
synced 2026-11-06 08:14:11 +00:00
Refresh eligible Rust dependencies and build tooling, including notify 8.2.1, Web PKI roots 1.0.11 and the ctutils constant-time fix. Handle macOS watcher restart failures, update Unicode-domain data, and require Rust 1.99.1 while preserving maintained fork pins and protocol baselines. Retain parking_lot 0.12 and the upstream nix pin for Android/iOS compatibility.
30 lines
775 B
Docker
30 lines
775 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM rust:1.99.1-bookworm AS build
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends cmake && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /build
|
|
ENV CARGO_BUILD_JOBS=1
|
|
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY tests/support/ tests/support/
|
|
COPY src/ src/
|
|
|
|
RUN cargo build --locked --release --bin shoes
|
|
|
|
FROM debian:bookworm-slim AS runtime
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=build /build/target/release/shoes /usr/local/bin/shoes
|
|
COPY LICENSE THIRD_PARTY_NOTICES.md /usr/share/doc/shoes/
|
|
COPY licenses/ /usr/share/doc/shoes/licenses/
|
|
|
|
WORKDIR /etc/shoes
|
|
USER 65532:65532
|
|
ENTRYPOINT ["/usr/local/bin/shoes"]
|
|
CMD ["/etc/shoes/config.yaml"]
|