Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -2,5 +2,10 @@ FROM ubuntu:latest
|
|
2 |
RUN apt update && apt upgrade -y
|
3 |
RUN apt install curl -y
|
4 |
RUN apt install wget -y
|
|
|
5 |
RUN apt install unzip -y
|
6 |
-
RUN curl -L https://raw.githubusercontent.com/nezhahq/scripts/main/agent/install.sh -o agent.sh && chmod +x agent.sh && env NZ_SERVER=vps-monitor.fly.dev:443 NZ_TLS=true NZ_CLIENT_SECRET=CqmryaDkXPUPoRtdGE8NvfGhjEOLu2b9 ./agent.sh
|
|
|
|
|
|
|
|
|
|
2 |
RUN apt update && apt upgrade -y
|
3 |
RUN apt install curl -y
|
4 |
RUN apt install wget -y
|
5 |
+
RUN apt install python3
|
6 |
RUN apt install unzip -y
|
7 |
+
RUN curl -L https://raw.githubusercontent.com/nezhahq/scripts/main/agent/install.sh -o agent.sh && chmod +x agent.sh && env NZ_SERVER=vps-monitor.fly.dev:443 NZ_TLS=true NZ_CLIENT_SECRET=CqmryaDkXPUPoRtdGE8NvfGhjEOLu2b9 ./agent.sh
|
8 |
+
EXPOSE 7860
|
9 |
+
|
10 |
+
# Perintah untuk menjalankan server web sederhana
|
11 |
+
CMD ["python", "-m", "http.server", "7860", "--bind", "0.0.0.0"]
|