LỖI: màn hình đen khi load

This commit is contained in:
2026-08-08 16:21:00 +07:00
parent 24051a2794
commit 4789f73ae7
12 changed files with 33873 additions and 64 deletions
+27 -22
View File
@@ -2,28 +2,33 @@
FROM python:3.11-slim
# Cài đặt các gói thư viện đồ hoạ và asound bắt buộc đối với JUCE / VST3 Linux (22_CLIENT_DESK.md)
RUN apt-get update && apt-get install -y \
libgl1 \
libglx-mesa0 \
libglu1-mesa \
libasound2 \
libjack-jackd2-0 \
libfreetype6 \
libfontconfig1 \
libx11-6 \
libxext6 \
libxinerama1 \
libxrandr2 \
libxcursor1 \
xvfb \
ffmpeg \
libsndfile1 \
libfluidsynth3 \
libcurl4 \
build-essential \
fluidsynth \
vorbis-tools \
&& rm -rf /var/lib/apt/lists/*
# ⚠️ Check trước: package đã có (layer cache bị invalidation) → BỎ QUA apt-get (tiết kiệm thời gian build)
RUN if command -v fluidsynth >/dev/null 2>&1 && command -v ffmpeg >/dev/null 2>&1 && command -v Xvfb >/dev/null 2>&1; then \
echo "Apt packages already installed - skip apt-get update/install"; \
else \
apt-get update && apt-get install -y \
libgl1 \
libglx-mesa0 \
libglu1-mesa \
libasound2 \
libjack-jackd2-0 \
libfreetype6 \
libfontconfig1 \
libx11-6 \
libxext6 \
libxinerama1 \
libxrandr2 \
libxcursor1 \
xvfb \
ffmpeg \
libsndfile1 \
libfluidsynth3 \
libcurl4 \
build-essential \
fluidsynth \
vorbis-tools \
&& rm -rf /var/lib/apt/lists/*; \
fi
# Thiết lập biến môi trường hiển thị cho X11 ảo
ENV DISPLAY=:99