Spaces:
Paused
Paused
Download Dockerfile from ChatMarkus1/CHESSAI: direct link, hf CLI and curl.
- Browser
- Download file 803 Bytes
-
https://huggingface.co/spaces/ChatMarkus1/CHESSAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ChatMarkus1/CHESSAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ChatMarkus1/CHESSAI/resolve/main/Dockerfile
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"] |