Created
March 19, 2020 10:07
-
-
Save shizonic/64278770c4b23692947a2ec84c9439d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run skype in a container, requires pulseaudio | |
# (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 \ | |
# --device /dev/video0 \ | |
# --name skype \ | |
# shizonic/skype | |
# | |
FROM debian:jessie | |
# Tell debconf to run in non-interactive mode | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
--no-install-recommends | |
# Add the skype debian repo | |
RUN curl -sSL https://repo.skype.com/data/SKYPE-GPG-KEY | apt-key add - | |
RUN echo "deb [arch=amd64] https://repo.skype.com/deb stable main" > /etc/apt/sources.list.d/skype.list | |
RUN apt-get update && apt-get -y install \ | |
skypeforlinux \ | |
--no-install-recommends \ | |
&& 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 ["skypeforlinux"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment