|
FROM ubuntu:22.04 |
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
RUN apt update && apt install -y \ |
|
xfce4 xfce4-goodies tightvncserver wget novnc websockify xterm firefox && \ |
|
apt clean && rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN mkdir -p /root/.vnc && \ |
|
echo "huggingface" | vncpasswd -f > /root/.vnc/passwd && \ |
|
chmod 600 /root/.vnc/passwd |
|
|
|
|
|
RUN echo "#!/bin/bash\nxrdb $HOME/.Xresources\nstartxfce4 &" > /root/.vnc/xstartup && chmod +x /root/.vnc/xstartup |
|
|
|
|
|
COPY app.sh /app.sh |
|
RUN chmod +x /app.sh |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["/app.sh"] |
|
|