docker deployment patch with verification and broken UI fixes (#1)

* bypass bambu cloud api opencb requirement

* project root add to managepy

* update instruction to do migration; mqtt login more verbose

* migrations up to date model

* use migrations from django migrate

* print full token to copy paste

* allow local network hosts

* added side bar toggle

* removed standalone css from dashboard css

* added icon and fixed text trunction issue

* fixed chart missing whitenoise and not rendering

* aded favicon and fixed ui issues
This commit is contained in:
RunLit
2026-02-21 15:03:16 +11:00
committed by GitHub
parent 47d0251494
commit 6376b4cc94
21 changed files with 2866 additions and 166 deletions

View File

@@ -10,11 +10,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
supervisor \
&& rm -rf /var/lib/apt/lists/*
# Install bambu-lab-cloud-api without deps (opencv-python is declared but unused at runtime)
# Install bambu-lab-cloud-api without deps (opencv-python is declared but unused at runtime).
# Then stub out opencv-python so pip's resolver considers it satisfied and won't try to
# build it from source (no C compiler, no armv7l wheel available).
RUN pip install --no-cache-dir bambu-lab-cloud-api --no-deps && \
pip install --no-cache-dir paho-mqtt requests flask flask-cors flask-limiter
pip install --no-cache-dir paho-mqtt requests flask flask-cors flask-limiter && \
python3 -c "import site, pathlib; \
d = pathlib.Path(site.getsitepackages()[0]) / 'opencv_python-4.99.0.dist-info'; \
d.mkdir(); \
(d / 'METADATA').write_text('Metadata-Version: 2.1\nName: opencv-python\nVersion: 4.99.0\n'); \
(d / 'INSTALLER').write_text('pip\n'); \
(d / 'RECORD').write_text('')"
# Install project and remaining dependencies
# Install project and remaining dependencies (pip sees opencv-python already satisfied)
COPY pyproject.toml .
RUN pip install --no-cache-dir ".[standalone]"