Skip to content

Commit 5710f46

Browse files
Copilotkoderzi
andcommitted
Improve readability of install-gui-deps.sh script
Co-authored-by: koderzi <30676109+koderzi@users.noreply.github.com>
1 parent 452ef1c commit 5710f46

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.devcontainer/docker/install-gui-deps.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ set -e
33

44
echo "Installing GUI dependencies for desktop environment..."
55

6-
apt-get update && apt-get install -y --no-install-recommends \
6+
# Update package list
7+
apt-get update
8+
9+
# Install GUI libraries required for desktop-lite feature
10+
apt-get install -y --no-install-recommends \
711
sudo \
812
libglib2.0-dev \
913
libnss3 \
@@ -13,7 +17,10 @@ apt-get update && apt-get install -y --no-install-recommends \
1317
libdrm2 \
1418
libgtk-3-0 \
1519
libgbm1 \
16-
libasound2 \
17-
&& apt-get clean && rm -rf /var/lib/apt/lists/*
20+
libasound2
21+
22+
# Clean up to reduce image size
23+
apt-get clean
24+
rm -rf /var/lib/apt/lists/*
1825

1926
echo "GUI dependencies installed successfully."

0 commit comments

Comments
 (0)