-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (14 loc) · 724 Bytes
/
Dockerfile
File metadata and controls
18 lines (14 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Build from python (plan Tweak 1: Glances venv can't safely add our deps)
FROM python:3.12-slim
# Install system deps: util-linux for dmesg
RUN apt-get update && apt-get install -y --no-install-recommends util-linux \
&& rm -rf /var/lib/apt/lists/*
# Install Glances + web server (FastAPI) + our deps
COPY scripts/requirements.txt /opt/monitoring/scripts/requirements.txt
RUN pip install --no-cache-dir glances fastapi uvicorn \
&& pip install --no-cache-dir -r /opt/monitoring/scripts/requirements.txt
COPY scripts/ /opt/monitoring/scripts/
COPY entrypoint.sh /opt/monitoring/entrypoint.sh
WORKDIR /opt/monitoring/scripts
RUN chmod +x /opt/monitoring/entrypoint.sh
ENTRYPOINT ["/opt/monitoring/entrypoint.sh"]