Urban-Guy commited on
Commit
53d03e5
·
verified ·
1 Parent(s): e34b6b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -1,16 +1,15 @@
1
  FROM ubuntu:22.04
2
 
3
  # Install dependencies
4
- RUN apt update && apt install -y curl git sudo bash net-tools procps
5
 
6
- # Expose the Netdata web port (mapped to HF Space port)
7
- EXPOSE 7860
 
8
 
9
- # Install Netdata (latest stable version)
10
- RUN bash <(curl -Ss https://my-netdata.io/kickstart.sh) --dont-wait
11
 
12
- # Map Netdata to port 7860 inside the container
13
- ENV NETDATA_PORT=7860
14
 
15
- # Run Netdata in foreground
16
- CMD ["netdata", "-D", "-p", "7860"]
 
1
  FROM ubuntu:22.04
2
 
3
  # Install dependencies
4
+ RUN apt update && apt install -y curl wget sudo bash net-tools procps
5
 
6
+ # Download and install Netdata
7
+ RUN wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && \
8
+ sh /tmp/netdata-kickstart.sh --dont-wait --disable-telemetry
9
 
10
+ # Expose the Space port
11
+ EXPOSE 7860
12
 
13
+ # Start Netdata in foreground on port 7860
14
+ CMD ["/usr/sbin/netdata", "-D", "-p", "7860"]
15