Spaces:
Paused
Paused
Upload Dockerfile
Browse files- Dockerfile +17 -45
Dockerfile
CHANGED
|
@@ -1,56 +1,28 @@
|
|
| 1 |
-
FROM ubuntu:
|
| 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 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
| 45 |
|
| 46 |
-
#
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
#
|
| 50 |
-
|
| 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
|
|
|
|
|
|