Download Dockerfile from uran69/Bolt: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/spaces/uran69/Bolt/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/uran69/Bolt/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/uran69/Bolt/resolve/main/Dockerfile
1.27 kB
| FROM debian:bookworm-slim | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Systempakete installieren | |
| RUN apt-get update && \ | |
| apt-get install -y openssh-server sudo git nano curl npm && \ | |
| mkdir /var/run/sshd | |
| # Benutzer "pi" erstellen | |
| RUN useradd -m -s /bin/bash pi && \ | |
| echo "pi:asdfmnbv" | chpasswd && \ | |
| usermod -aG sudo pi | |
| # SSH-Konfiguration anpassen | |
| RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' /etc/ssh/sshd_config && \ | |
| sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config | |
| # Installationsskript für Node.js, npm und pnpm nach /root/1.sh schreiben | |
| RUN cat <<EOF > /root/1.sh | |
| #!/bin/bash | |
| apt update && apt install -y curl npm | |
| curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | |
| export NVM_DIR="\$HOME/.nvm" | |
| [ -s "\$NVM_DIR/nvm.sh" ] && . "\$NVM_DIR/nvm.sh" | |
| nvm install node | |
| npm install -g pnpm | |
| EOF | |
| RUN chmod +x /root/1.sh | |
| # Installationsskript für Bolt nach /home/pi/1.sh schreiben | |
| RUN cat <<EOF > /home/pi/1.sh | |
| #!/bin/bash | |
| cd /home/pi | |
| git clone https://github.com/stackblitz-labs/bolt.diy.git bolt | |
| cd bolt | |
| pnpm install | |
| pnpm run dev --host 0.0.0.0 | |
| EOF | |
| RUN chmod +x /home/pi/1.sh && chown pi:pi /home/pi/1.sh | |
| # Container Startbefehl | |
| CMD ["/usr/sbin/sshd", "-D"] |