Spaces:
Paused
Paused
File size: 1,936 Bytes
2864444 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | FROM ubuntu:26.04
LABEL maintainer="F555"
ENV APP_DIR=/app \
DEBIAN_FRONTEND=noninteractive \
DISPLAY=:1 \
SCREEN_WIDTH=1280 \
SCREEN_HEIGHT=800 \
BROWSER_START_URL=https://huggingface.co
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
ca-certificates \
curl \
dbus-x11 \
fluxbox \
fonts-dejavu \
fonts-liberation \
git \
git-lfs \
gnupg \
novnc \
procps \
websockify \
wget \
x11-utils \
x11vnc \
xdotool \
xterm \
xvfb \
&& wget -q -O /tmp/google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt-get install -y --no-install-recommends /tmp/google-chrome.deb \
&& rm -f /tmp/google-chrome.deb \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /app /app/novnc-web /home/user \
&& cp -a /usr/share/novnc/. /app/novnc-web/ \
&& printf '%s\n' \
'<!doctype html>' \
'<html lang="en">' \
'<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>TestClaw Browser</title></head>' \
'<body style="margin:0;background:#101112;color:#eee;font-family:Arial,sans-serif">' \
'<script>location.replace("/vnc.html?autoconnect=true&resize=remote&reconnect=true&path=websockify");</script>' \
'<p style="padding:1rem">Opening browser control surface...</p>' \
'</body></html>' \
> /app/novnc-web/index.html \
&& printf '{"status":"ok","base":"ubuntu:26.04","service":"testclaw-browser-gui"}\n' > /app/novnc-web/health \
&& ln -sfn /app /home/user/app \
&& chown -R 1000:1000 /app /home/user
COPY start-gui.sh /usr/local/bin/start-gui.sh
RUN chmod +x /usr/local/bin/start-gui.sh
USER root
WORKDIR /app
EXPOSE 7860
CMD ["/usr/local/bin/start-gui.sh"]
|