File size: 585 Bytes
32770b3
6a1edf3
32770b3
6a1edf3
a4e34a1
 
 
 
 
 
32770b3
 
6a1edf3
a4e34a1
32770b3
6a1edf3
a4e34a1
 
 
 
 
 
6a1edf3
 
 
a4e34a1
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.10-slim

WORKDIR /app

# System deps (node exporter)
RUN apt-get update \
 && apt-get install -y --no-install-recommends prometheus-node-exporter ca-certificates \
 && rm -rf /var/lib/apt/lists/*

# Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# App files
COPY . .

# Ensure entrypoint is executable
RUN chmod +x /app/entrypoint.sh

# Env for Gradio inside containers
ENV GRADIO_SERVER_NAME=0.0.0.0

# Expose container-side ports:
EXPOSE 7860 8000 9100

# Start both Node Exporter and the app
ENTRYPOINT ["/app/entrypoint.sh"]