added minimal git example and removed sudo from 'setup_pulse.sh' (not necessary in rootless context)
This commit is contained in:
parent
4b476526a7
commit
4410ac6294
2 changed files with 14 additions and 3 deletions
12
git_debian_latest/Dockerfile
Normal file
12
git_debian_latest/Dockerfile
Normal 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
5
setup_pulse.sh
Normal file → Executable 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
|
||||
|
||||
|
|
Reference in a new issue