lljz66 commited on
Commit
38b1621
·
verified ·
1 Parent(s): e86afd4

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -45
Dockerfile CHANGED
@@ -1,56 +1,28 @@
1
- FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
- ENV DISPLAY=:1
5
- ENV VNC_PASSWORD=desktop
6
-
7
- RUN apt-get update && apt-get install -y \
8
- xvfb \
9
- x11vnc \
10
- novnc \
11
- websockify \
12
- openbox \
13
- obconf \
14
- xterm \
15
- pcmanfm \
16
- firefox \
17
- wget \
18
- curl \
19
- git \
20
- nano \
21
- vim \
22
- htop \
23
- unzip \
24
- zip \
25
- python3 \
26
- python3-pip \
27
- supervisor \
28
- net-tools \
29
- dbus-x11 \
30
- at-spi2-core \
31
- && rm -rf /var/lib/apt/lists/*
32
 
33
  # Install Wine
34
  RUN dpkg --add-architecture i386 && \
35
  apt-get update && \
36
  apt-get install -y --no-install-recommends \
37
- wine \
38
- wine32 \
39
- wine64 \
40
- winetricks \
41
- && rm -rf /var/lib/apt/lists/*
42
-
43
- # Setup noVNC
44
- RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html || true
 
45
 
46
- # Supervisor config to run everything
47
- COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
 
 
 
48
 
49
- # Openbox autostart
50
- RUN mkdir -p /root/.config/openbox
51
- COPY autostart /root/.config/openbox/autostart
52
- RUN chmod +x /root/.config/openbox/autostart
53
 
54
  EXPOSE 7860
55
-
56
- CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
 
1
+ FROM dorowu/ubuntu-desktop-lxde-vnc:focal
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  # Install Wine
6
  RUN dpkg --add-architecture i386 && \
7
  apt-get update && \
8
  apt-get install -y --no-install-recommends \
9
+ wget \
10
+ gnupg2 \
11
+ software-properties-common && \
12
+ wget -qO- https://dl.winehq.org/wine-builds/winehq.key | apt-key add - && \
13
+ add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' && \
14
+ apt-get update && \
15
+ apt-get install -y --install-recommends winehq-stable && \
16
+ apt-get install -y winetricks && \
17
+ rm -rf /var/lib/apt/lists/*
18
 
19
+ # The base image already provides:
20
+ # - LXDE desktop environment
21
+ # - noVNC on port 80
22
+ # - x11vnc, Xvfb, supervisord
23
+ # - Firefox, file manager, terminal
24
 
25
+ # Remap noVNC to port 7860 for Hugging Face
26
+ ENV HTTP_PORT=7860
 
 
27
 
28
  EXPOSE 7860