mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
feat: integrate Statime PTP daemon into Dockerfile and docker-compose
Co-authored-by: aider (openai/gpt-5) <aider@aider.chat>
This commit is contained in:
parent
b72a721671
commit
323cc61ae3
2 changed files with 25 additions and 0 deletions
|
|
@ -22,6 +22,10 @@ RUN rm -rf src
|
|||
COPY . .
|
||||
RUN cargo build --release --bin ntp_timeturner --bin ptp_probe
|
||||
|
||||
# Build and install the Statime PTP daemon (from crates.io)
|
||||
# This installs the 'statime' binary into /usr/local/cargo/bin/statime in the builder image.
|
||||
RUN cargo install --locked statime-linux --version 0.4.0
|
||||
|
||||
# Runtime image
|
||||
FROM debian:bookworm-slim AS runtime
|
||||
|
||||
|
|
@ -35,6 +39,7 @@ WORKDIR /app
|
|||
|
||||
COPY --from=builder /app/target/release/ntp_timeturner /usr/local/bin/ntp_timeturner
|
||||
COPY --from=builder /app/target/release/ptp_probe /usr/local/bin/ptp_probe
|
||||
COPY --from=builder /usr/local/cargo/bin/statime /usr/local/bin/statime
|
||||
COPY static ./static
|
||||
|
||||
ENV RUST_LOG=info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue