mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
* Add webhooks page to docs * supports * supports * periphery Dockerfile * add comments. Remove unneeded default config * add FILE SYSTEM log * remove log * filter disks included in periphery disk report, on periphery side * dockerized periphery * all in one compose file docs * remove some unused deps
26 lines
704 B
Docker
26 lines
704 B
Docker
# Build Periphery
|
|
FROM rust:1.80.1-bookworm AS builder
|
|
WORKDIR /builder
|
|
COPY . .
|
|
RUN cargo build -p monitor_periphery --release
|
|
|
|
# Final Image
|
|
FROM debian:bookworm-slim
|
|
|
|
# Install Deps
|
|
RUN apt update && apt install -y git curl ca-certificates && \
|
|
curl -fsSL https://get.docker.com | sh
|
|
|
|
# Copy
|
|
COPY --from=builder /builder/target/release/periphery /
|
|
|
|
# Hint at the port
|
|
EXPOSE 8120
|
|
|
|
# Label for Ghcr
|
|
LABEL org.opencontainers.image.source=https://github.com/mbecker20/monitor
|
|
LABEL org.opencontainers.image.description="Monitor Periphery"
|
|
LABEL org.opencontainers.image.licenses=GPL-3.0
|
|
|
|
# Using ENTRYPOINT allows cli args to be passed, eg using "command" in docker compose.
|
|
ENTRYPOINT [ "./periphery" ] |