CoelinhaJob commited on
Commit
cad8067
·
verified ·
1 Parent(s): d658df0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -15,7 +15,6 @@ ENV TZ=America/Sao_Paulo
15
  # --------------------------------------------------------
16
  # 3. INSTALL APPS & UTILS
17
  # --------------------------------------------------------
18
- # Adicionei 'wget' na lista para poder baixar o wallpaper novo
19
  RUN apt-get update && apt-get install -y \
20
  python3 \
21
  python3-pip \
@@ -40,29 +39,29 @@ RUN mkdir -p /etc/firefox/policies && \
40
  RUN mkdir -p /etc/chromium/policies/managed && \
41
  echo '{ "DnsOverHttpsMode": "secure", "DnsOverHttpsTemplates": "https://chrome.cloudflare-dns.com/dns-query" }' > /etc/chromium/policies/managed/managed_policies.json
42
 
43
- # Garante que funciona se o usuário instalar o Chrome oficial depois
44
  RUN mkdir -p /etc/opt/chrome/policies/managed && \
45
  cp /etc/chromium/policies/managed/managed_policies.json /etc/opt/chrome/policies/managed/managed_policies.json
46
 
47
  # --------------------------------------------------------
48
  # 6. DISFARCE VISUAL (WALLPAPER PRO)
49
  # --------------------------------------------------------
50
- # Substitui o fundo padrão azul do XFCE por um wallpaper estilo "Hacker/Tech"
51
- # Se quiser outra imagem, basta trocar o link entre aspas.
52
  RUN wget -O /usr/share/backgrounds/xfce/xfce-stripes.png "https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?q=80&w=1920&auto=format&fit=crop"
53
 
54
  # --------------------------------------------------------
55
- # 7. LIMPEZA DE RASTROS (TERMINAL STEALTH)
56
  # --------------------------------------------------------
57
- # Aqui removemos as variáveis de ambiente que o Hugging Face injeta.
58
- # Também forçamos o prompt a mostrar "root@vps-pro" em vez do ID do container.
59
 
 
60
  RUN echo 'unset SPACE_ID' >> /etc/bash.bashrc && \
61
  echo 'unset HUGGINGFACE_HUB_TOKEN' >> /etc/bash.bashrc && \
62
  echo 'unset SPACE_AUTHOR_NAME' >> /etc/bash.bashrc && \
63
  echo 'unset SPACE_REPO_NAME' >> /etc/bash.bashrc && \
64
  echo 'unset SPACE_HOST' >> /etc/bash.bashrc && \
65
- echo 'export PS1="\[\e[32m\]root@vps-pro\[\e[m\]:\[\e[34m\]\w\[\e[m\]# "' >> /etc/bash.bashrc
 
 
 
66
 
67
  # --------------------------------------------------------
68
  # 8. START
 
15
  # --------------------------------------------------------
16
  # 3. INSTALL APPS & UTILS
17
  # --------------------------------------------------------
 
18
  RUN apt-get update && apt-get install -y \
19
  python3 \
20
  python3-pip \
 
39
  RUN mkdir -p /etc/chromium/policies/managed && \
40
  echo '{ "DnsOverHttpsMode": "secure", "DnsOverHttpsTemplates": "https://chrome.cloudflare-dns.com/dns-query" }' > /etc/chromium/policies/managed/managed_policies.json
41
 
 
42
  RUN mkdir -p /etc/opt/chrome/policies/managed && \
43
  cp /etc/chromium/policies/managed/managed_policies.json /etc/opt/chrome/policies/managed/managed_policies.json
44
 
45
  # --------------------------------------------------------
46
  # 6. DISFARCE VISUAL (WALLPAPER PRO)
47
  # --------------------------------------------------------
 
 
48
  RUN wget -O /usr/share/backgrounds/xfce/xfce-stripes.png "https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?q=80&w=1920&auto=format&fit=crop"
49
 
50
  # --------------------------------------------------------
51
+ # 7. LIMPEZA DE RASTROS (TERMINAL BLINDADO)
52
  # --------------------------------------------------------
53
+ # Correção: Agora configuramos também o /root/.bashrc para cobrir o "sudo su"
 
54
 
55
+ # 1. Remove variáveis globais
56
  RUN echo 'unset SPACE_ID' >> /etc/bash.bashrc && \
57
  echo 'unset HUGGINGFACE_HUB_TOKEN' >> /etc/bash.bashrc && \
58
  echo 'unset SPACE_AUTHOR_NAME' >> /etc/bash.bashrc && \
59
  echo 'unset SPACE_REPO_NAME' >> /etc/bash.bashrc && \
60
  echo 'unset SPACE_HOST' >> /etc/bash.bashrc && \
61
+ # 2. Configura o prompt para usuários normais (user@vps-pro)
62
+ echo 'export PS1="\[\e[1;32m\]user@vps-pro\[\e[m\]:\[\e[1;34m\]\w\[\e[m\]$ "' >> /etc/bash.bashrc && \
63
+ # 3. Configura o prompt ESPECÍFICO do Root (root@vps-pro) - Isso resolve o seu print
64
+ echo 'export PS1="\[\e[1;31m\]root@vps-pro\[\e[m\]:\[\e[1;34m\]\w\[\e[m\]# "' >> /root/.bashrc
65
 
66
  # --------------------------------------------------------
67
  # 8. START