From 4410ac62944c8e19e5054629c45b3a8be0086433 Mon Sep 17 00:00:00 2001 From: dab Date: Thu, 3 Apr 2025 22:55:47 +0000 Subject: [PATCH] added minimal git example and removed sudo from 'setup_pulse.sh' (not necessary in rootless context) --- git_debian_latest/Dockerfile | 12 ++++++++++++ setup_pulse.sh | 5 ++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 git_debian_latest/Dockerfile mode change 100644 => 100755 setup_pulse.sh diff --git a/git_debian_latest/Dockerfile b/git_debian_latest/Dockerfile new file mode 100644 index 0000000..d7ae4db --- /dev/null +++ b/git_debian_latest/Dockerfile @@ -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} diff --git a/setup_pulse.sh b/setup_pulse.sh old mode 100644 new mode 100755 index 01a8f2b..cfa62c8 --- a/setup_pulse.sh +++ b/setup_pulse.sh @@ -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