Spaces:
Paused

CHESSAI / Dockerfile
ChatMarkus1's picture
Update Dockerfile
92cb687 verified
Raw History Blame Contribute Delete
803 Bytes
FROM debian:bullseye-slim
ENV DEBIAN_FRONTEND=noninteractive
# Install GUI + Bot Dependencies (PyAutoGUI needs scrot and tk)
RUN apt-get update && apt-get install -y --no-install-recommends \
xfce4 xfce4-terminal \
tigervnc-standalone-server novnc websockify \
python3 python3-pip python3-tk scrot \
firefox-esr dbus-x11 \
&& ln -s /usr/share/novnc/vnc_lite.html /usr/share/novnc/index.html \
&& pip3 install pyautogui \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN useradd -m -u 1000 user
USER user
WORKDIR /home/user/app
# Set VNC password
RUN mkdir -p /home/user/.vnc && \
echo "password" | vncpasswd -f > /home/user/.vnc/passwd && \
chmod 600 /home/user/.vnc/passwd
COPY --chown=user . .
RUN chmod +x start.sh
CMD ["./start.sh"]