Poweruser01 commited on
Commit
13e0016
·
verified ·
1 Parent(s): 19a127e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -10,22 +10,23 @@ ENV VNC_PORT=5901
10
  ENV NOVNC_PORT=7860
11
  ENV X11VNC_LOG=/tmp/x11vnc.log
12
 
13
- # Install dependencies: Chrome, Xvfb, noVNC, Fluxbox, and utilities
14
  RUN apt-get update && apt-get install -y \
15
  wget \
16
  gnupg \
 
 
17
  xvfb \
18
  fluxbox \
19
  x11vnc \
20
  novnc \
21
- curl \
22
  && rm -rf /var/lib/apt/lists/*
23
 
24
- # Install Google Chrome
25
- RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
26
- && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
27
  && apt-get update \
28
- && apt-get install -y google-chrome-stable \
29
  && rm -rf /var/lib/apt/lists/*
30
 
31
  # Create a non-root user
@@ -44,7 +45,7 @@ RUN chown -R $USER:$USER $HOME/.fluxbox
44
  # Set up noVNC web interface
45
  RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
46
 
47
- # Copy a startup script to run Chrome in VNC
48
  RUN mkdir -p $HOME/scripts
49
  COPY start.sh $HOME/scripts/start.sh
50
  RUN chmod +x $HOME/scripts/start.sh
@@ -56,5 +57,5 @@ WORKDIR $HOME
56
  # Expose port 7860 for noVNC (Hugging Face Spaces default)
57
  EXPOSE $NOVNC_PORT
58
 
59
- # Start the VNC server, noVNC, and Chrome
60
  CMD ["/home/appuser/scripts/start.sh"]
 
10
  ENV NOVNC_PORT=7860
11
  ENV X11VNC_LOG=/tmp/x11vnc.log
12
 
13
+ # Install dependencies: Brave prerequisites, Xvfb, noVNC, Fluxbox, and utilities
14
  RUN apt-get update && apt-get install -y \
15
  wget \
16
  gnupg \
17
+ curl \
18
+ apt-transport-https \
19
  xvfb \
20
  fluxbox \
21
  x11vnc \
22
  novnc \
 
23
  && rm -rf /var/lib/apt/lists/*
24
 
25
+ # Install Brave Browser
26
+ RUN curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg \
27
+ && echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" > /etc/apt/sources.list.d/brave-browser-release.list \
28
  && apt-get update \
29
+ && apt-get install -y brave-browser \
30
  && rm -rf /var/lib/apt/lists/*
31
 
32
  # Create a non-root user
 
45
  # Set up noVNC web interface
46
  RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
47
 
48
+ # Copy a startup script to run Brave in VNC
49
  RUN mkdir -p $HOME/scripts
50
  COPY start.sh $HOME/scripts/start.sh
51
  RUN chmod +x $HOME/scripts/start.sh
 
57
  # Expose port 7860 for noVNC (Hugging Face Spaces default)
58
  EXPOSE $NOVNC_PORT
59
 
60
+ # Start the VNC server, noVNC, and Brave
61
  CMD ["/home/appuser/scripts/start.sh"]