triflix commited on
Commit
8ae8a7b
·
verified ·
1 Parent(s): a23051e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -12
Dockerfile CHANGED
@@ -1,17 +1,23 @@
1
- FROM kasmweb/firefox:1.17.0
2
 
3
- # Set user as required by Hugging Face Spaces
4
- USER 1000
5
 
6
- # Configure environment variables for HF Spaces
7
- ENV KASM_VNC_PASSWORD=password
8
- ENV VNC_PW=password
 
 
 
 
9
 
10
- # Set working directory to /tmp (writable area)
11
- WORKDIR /tmp
 
12
 
13
- # Expose port 7860 as required by Hugging Face Spaces
14
- EXPOSE 7860
 
15
 
16
- # Modify the startup to use port 7860
17
- CMD ["sh", "-c", "sed -i 's/6901/7860/g' /usr/share/kasmvnc/www/vnc.html && /dockerstartup/kasm_default_profile.sh"]
 
1
+ FROM ubuntu:20.04
2
 
3
+ # Disable interactive apt
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Install XFCE + VNC + noVNC
7
+ RUN apt-get update && apt-get install -y \
8
+ xfce4 xfce4-goodies \
9
+ novnc websockify \
10
+ x11vnc xvfb \
11
+ wget curl git net-tools \
12
+ && apt-get clean
13
 
14
+ # Setup noVNC
15
+ RUN mkdir -p /root/.vnc
16
+ RUN x11vnc -storepasswd 1234 /root/.vnc/passwd
17
 
18
+ # Start script
19
+ COPY start.sh /start.sh
20
+ RUN chmod +x /start.sh
21
 
22
+ EXPOSE 8080
23
+ CMD ["/start.sh"]