mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
Run skype as a non-root user.
This commit is contained in:
parent
2f928bc0c8
commit
cd549c78e5
|
@ -2,6 +2,7 @@
|
|||
# (but I have a container for that)
|
||||
#
|
||||
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
# -v $HOME/.Skype:/home/skype/.Skype \
|
||||
# -e DISPLAY=unix$DISPLAY \
|
||||
# --link pulseaudio:pulseaudio \
|
||||
# -e PULSE_SERVER=pulseaudio \
|
||||
|
@ -27,5 +28,14 @@ RUN curl http://download.skype.com/linux/skype-debian_4.3.0.37-1_i386.deb > /usr
|
|||
apt-get install -fy \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Make a user
|
||||
ENV HOME /home/skype
|
||||
RUN useradd --create-home --home-dir $HOME skype \
|
||||
&& chown -R skype:skype $HOME \
|
||||
&& usermod -a -G audio,video skype
|
||||
|
||||
WORKDIR $HOME
|
||||
USER skype
|
||||
|
||||
# Start Skype
|
||||
ENTRYPOINT ["skype"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user