added minimal git example and removed sudo from 'setup_pulse.sh' (not necessary in rootless context)

This commit is contained in:
dab 2025-04-03 22:55:47 +00:00
parent 4b476526a7
commit 4410ac6294
2 changed files with 14 additions and 3 deletions

View file

@ -0,0 +1,12 @@
FROM debian:latest
ARG U_NAME="user"
ARG U_ID="1000"
RUN adduser --disabled-password --gecos '' --uid ${U_ID} ${U_NAME}
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home/${U_NAME}
USER ${U_NAME}

5
setup_pulse.sh Normal file → Executable file
View file

@ -1,9 +1,8 @@
#!/bin/bash
set -e
# !!
sudo rm -rf /tmp/pulseaudio.socket && true
sudo rm -rf /tmp/pulseaudio.client.conf && true
rm -rf /tmp/pulseaudio.socket || true
rm -rf /tmp/pulseaudio.client.conf || true
pactl load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket