Bashir Gulistani commited on
Commit
3b4ef99
·
unverified ·
1 Parent(s): 06f59b6

Delete Dockerfile.txt

Browse files
Files changed (1) hide show
  1. Dockerfile.txt +0 -25
Dockerfile.txt DELETED
@@ -1,25 +0,0 @@
1
- FROM python:3.10-slim
2
- # Can happen early, almost never changes
3
- WORKDIR /opt/app
4
-
5
- # Install packages that we need.
6
- # Again does not change often
7
- ENV DEBIAN_FRONTEND noninteractive
8
- RUN apt-get update && \
9
- apt-get upgrade -yq ca-certificates && \
10
- apt-get install -yq --no-install-recommends \
11
- prometheus-node-exporter
12
-
13
- # Some environment variables that don't change often
14
- EXPOSE 7860
15
- EXPOSE 8000
16
- EXPOSE 9100
17
- ENV GRADIO_SERVER_NAME="0.0.0.0"
18
-
19
- # We put this near the end since it can change
20
- COPY requirements.txt requirements.txt
21
- RUN pip install --no-cache-dir -r /opt/app/requirements.txt
22
-
23
- # This changes the most, so it goes last!
24
- COPY . .
25
- CMD bash -c "prometheus-node-exporter --web.listen-address=':9100' & python /opt/app/app.py"