File size: 627 Bytes
57b8244
256f1a5
57b8244
256f1a5
9053254
57b8244
 
256f1a5
 
 
 
 
d29affe
 
256f1a5
 
d29affe
 
 
256f1a5
57b8244
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Base image
FROM python:3.10-slim
# Set working directory
WORKDIR /opt/app
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install packages that we need. vim is for helping with debugging
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
    apt-get upgrade -yq ca-certificates && \
    apt-get install -yq --no-install-recommends \
    # prometheus-node-exporter \
    curl

EXPOSE 7860
# EXPOSE 8000
# EXPOSE 9100
# ENV GRADIO_SERVER_NAME="0.0.0.0"

CMD bash -c "/usr/local/bin/python3 /opt/app/app.py"
# /usr/bin/prometheus-node-exporter --web.listen-address='0.0.0.0:9100' &