Fix filaments card empty for pre-multi-AMS data (ams_unit_id=NULL rows now render in a fallback group). Resolve Dockerfile stash conflict.

This commit is contained in:
RNL
2026-06-24 23:54:02 +10:00
parent 4c01b3d909
commit 0a1da46d1f
2 changed files with 17 additions and 4 deletions

View File

@@ -22,19 +22,20 @@ RUN pip install --no-cache-dir bambu-lab-cloud-api --no-deps && \
(d / 'INSTALLER').write_text('pip\n'); \
(d / 'RECORD').write_text('')"
# Install project and remaining dependencies (pip sees opencv-python already satisfied)
# Install standalone dependencies first — cached unless pyproject.toml changes
COPY pyproject.toml .
RUN pip install --no-cache-dir ".[standalone,mcp]"
# Copy application code
# Copy full source and install the local package (no-deps: already installed above)
COPY . .
RUN pip install --no-cache-dir --no-deps .
# Create data directory for SQLite
RUN mkdir -p /app/data
# Collect static files
# Collect static files from the locally installed package
ENV DJANGO_SETTINGS_MODULE=standalone.settings
RUN python standalone/manage.py collectstatic --noinput 2>/dev/null || true
RUN python standalone/manage.py collectstatic --noinput
# Supervisor config to run both web and collector
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf