Files
komodo/bin/periphery/Dockerfile
Maxwell Becker 1f2d236228 Dockerized periphery (#34)
* 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
2024-08-17 00:25:42 -07:00

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" ]