Skip to content

Commit 452ef1c

Browse files
Copilotkoderzi
andcommitted
Add GUI dependencies installation script for desktop-lite support
Co-authored-by: koderzi <30676109+koderzi@users.noreply.github.com>
1 parent 6c3a8e2 commit 452ef1c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.devcontainer/docker/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ RUN apt-get update \
1212
&& curl -fsSL https://mise.run | sh \
1313
&& ~/.local/bin/mise --version || true
1414

15+
# Install GUI dependencies for desktop-lite feature
16+
COPY install-gui-deps.sh /tmp/install-gui-deps.sh
17+
RUN chmod +x /tmp/install-gui-deps.sh && /tmp/install-gui-deps.sh && rm /tmp/install-gui-deps.sh
18+
1519
ENV PATH="/root/.local/bin:${PATH}"
1620

1721
RUN echo 'eval "$(/root/.local/bin/mise activate bash)"' > /etc/profile.d/mise.sh \
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Installing GUI dependencies for desktop environment..."
5+
6+
apt-get update && apt-get install -y --no-install-recommends \
7+
sudo \
8+
libglib2.0-dev \
9+
libnss3 \
10+
libatk1.0-0 \
11+
libatk-bridge2.0-0 \
12+
libcups2 \
13+
libdrm2 \
14+
libgtk-3-0 \
15+
libgbm1 \
16+
libasound2 \
17+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
18+
19+
echo "GUI dependencies installed successfully."

0 commit comments

Comments
 (0)