gremio / Dockerfile
adriano2005's picture
Update Dockerfile
e14b00a verified
FROM linuxserver/webtop:ubuntu-xfce
# --------------------------------------------------------
# 1. SMART PORT CONFIGURATION
# --------------------------------------------------------
RUN grep -rl "3000" /defaults | xargs sed -i 's/3000/7860/g'
# --------------------------------------------------------
# 2. PERMISSIONS & ENVIRONMENT
# --------------------------------------------------------
ENV PUID=1000
ENV PGID=1000
ENV TZ=America/Sao_Paulo
# --------------------------------------------------------
# 3. INSTALL APPS & UTILS
# --------------------------------------------------------
# Adicionei 'wget' na lista para poder baixar o wallpaper novo
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
git \
firefox \
nano \
vlc \
iputils-ping \
dnsutils \
wget \
&& apt-get clean
# --------------------------------------------------------
# 4. FIREFOX "BOSS MODE" (Enterprise Policy)
# --------------------------------------------------------
RUN mkdir -p /etc/firefox/policies && \
echo '{ "policies": { "DNSOverHTTPS": { "Enabled": true, "ProviderURL": "https://mozilla.cloudflare-dns.com/dns-query", "Locked": true } } }' > /etc/firefox/policies/policies.json
# --------------------------------------------------------
# 5. CHROMIUM "BOSS MODE" (Managed Policy)
# --------------------------------------------------------
RUN mkdir -p /etc/chromium/policies/managed && \
echo '{ "DnsOverHttpsMode": "secure", "DnsOverHttpsTemplates": "https://chrome.cloudflare-dns.com/dns-query" }' > /etc/chromium/policies/managed/managed_policies.json
# Garante que funciona se o usuário instalar o Chrome oficial depois
RUN mkdir -p /etc/opt/chrome/policies/managed && \
cp /etc/chromium/policies/managed/managed_policies.json /etc/opt/chrome/policies/managed/managed_policies.json
# --------------------------------------------------------
# 6. DISFARCE VISUAL (WALLPAPER PRO)
# --------------------------------------------------------
# Substitui o fundo padrão azul do XFCE por um wallpaper estilo "Hacker/Tech"
# Se quiser outra imagem, basta trocar o link entre aspas.
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"
# --------------------------------------------------------
# 7. LIMPEZA DE RASTROS (TERMINAL STEALTH)
# --------------------------------------------------------
# Aqui removemos as variáveis de ambiente que o Hugging Face injeta.
# Também forçamos o prompt a mostrar "root@vps-pro" em vez do ID do container.
RUN echo 'unset SPACE_ID' >> /etc/bash.bashrc && \
echo 'unset HUGGINGFACE_HUB_TOKEN' >> /etc/bash.bashrc && \
echo 'unset SPACE_AUTHOR_NAME' >> /etc/bash.bashrc && \
echo 'unset SPACE_REPO_NAME' >> /etc/bash.bashrc && \
echo 'unset SPACE_HOST' >> /etc/bash.bashrc && \
echo 'export PS1="\[\e[32m\]root@vps-pro\[\e[m\]:\[\e[34m\]\w\[\e[m\]# "' >> /etc/bash.bashrc
# --------------------------------------------------------
# 8. START
# --------------------------------------------------------
# The container handles the rest