From 0194a0498e6179d76bb90fcd80054652cdc07c4a Mon Sep 17 00:00:00 2001 From: maziggy Date: Tue, 9 Dec 2025 17:25:17 +0000 Subject: [PATCH] Added Docker support --- Dockerfile | 3 +-- README.md | 20 ++++++++++++-------- build_docker.sh | 3 +++ 3 files changed, 16 insertions(+), 10 deletions(-) create mode 100755 build_docker.sh diff --git a/Dockerfile b/Dockerfile index a1c0b8d86..b38064d73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,7 @@ FROM node:22-bookworm-slim AS frontend-builder WORKDIR /app/frontend COPY frontend/package*.json ./ -RUN npm ci --ignore-scripts && \ - npm rebuild esbuild +RUN npm ci COPY frontend/ ./ RUN npm run build diff --git a/README.md b/README.md index 0df94a479..130d9d615 100644 --- a/README.md +++ b/README.md @@ -130,27 +130,31 @@ ## 🚀 Quick Start ### Requirements -- Python 3.10+ (3.11/3.12 recommended) - Bambu Lab printer with **LAN Mode** enabled - Same local network as printer -### Installation +### Docker (Recommended) + +```bash +git clone https://github.com/maziggy/bambuddy.git +cd bambuddy +docker compose up -d +``` + +Open **http://localhost:8000** and add your printer! + +### Manual Installation ```bash -# Clone and setup git clone https://github.com/maziggy/bambuddy.git cd bambuddy python3 -m venv venv source venv/bin/activate pip install -r requirements.txt - -# Run uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 ``` -Open **http://localhost:8000** and add your printer! - -> **Need detailed instructions?** See the [Installation Guide](https://github.com/maziggy/bambuddy-wiki/blob/main/Installation.md) +> **Need detailed instructions?** See the [Installation Guide](https://github.com/maziggy/bambuddy-wiki/blob/main/Installation.md) or [Docker Guide](https://github.com/maziggy/bambuddy-wiki/blob/main/Docker.md) ### Enabling LAN Mode diff --git a/build_docker.sh b/build_docker.sh new file mode 100755 index 000000000..145e869e0 --- /dev/null +++ b/build_docker.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sudo DOCKER_BUILDKIT=0 docker compose build