File size: 1,028 Bytes
84c5474 a89a34a 84c5474 a89a34a 84c5474 |
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 |
# Base image
FROM ubuntu:20.04
# Environment settings
ENV DEBIAN_FRONTEND=noninteractive
ENV USER root
# Install required packages
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
apt-utils && \
apt-get install -f && \
dpkg --configure -a && \
apt-get install -y \
supervisor \
xfce4 \
xfce4-terminal \
novnc \
net-tools \
tigervnc-standalone-server \
wget \
xterm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install noVNC
RUN wget https://github.com/novnc/noVNC/archive/refs/tags/v1.2.0.tar.gz \
&& tar -xvzf v1.2.0.tar.gz \
&& mv noVNC-1.2.0 /usr/share/novnc \
&& rm v1.2.0.tar.gz
# Set up noVNC
RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
# Create a startup script for supervisord
RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Expose ports
EXPOSE 7860
EXPOSE 5901
# CMD
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
|