dracoox commited on
Commit
e75d1df
·
verified ·
1 Parent(s): 79b74a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,6 +1,7 @@
1
  FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
 
4
 
5
  RUN apt update && apt upgrade -y && \
6
  apt-get install -y \
@@ -26,12 +27,8 @@ RUN mkdir -p /root/.ssh && \
26
  RUN git clone https://github.com/foxytouxxx/freeroot.git /opt/freeroot && \
27
  chmod +x /opt/freeroot/root.sh
28
 
29
- # Dummy HTTP page dir
30
  RUN mkdir -p /app && echo "Tmate Session Running..." > /app/index.html
31
  WORKDIR /app
32
 
33
- # Use $PORT for HF Spaces default to 7860 if not set
34
- ENV PORT=7860
35
-
36
- # Start HTTP server on $PORT, run tmate in background quietly (optional)
37
- CMD python3 -m http.server $PORT & tmate -F --quiet
 
1
  FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV PORT=7860
5
 
6
  RUN apt update && apt upgrade -y && \
7
  apt-get install -y \
 
27
  RUN git clone https://github.com/foxytouxxx/freeroot.git /opt/freeroot && \
28
  chmod +x /opt/freeroot/root.sh
29
 
 
30
  RUN mkdir -p /app && echo "Tmate Session Running..." > /app/index.html
31
  WORKDIR /app
32
 
33
+ # Start HTTP server on $PORT and tmate in foreground, redirecting tmate logs to reduce noise
34
+ CMD python3 -m http.server $PORT & tmate -F > /dev/null 2>&1