2015-06-19 01:47:56 +02:00
|
|
|
# Run skype in a container, requires pulseaudio
|
|
|
|
# (but I have a container for that)
|
2015-01-01 21:42:14 +01:00
|
|
|
#
|
|
|
|
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
|
2015-12-14 09:20:09 +01:00
|
|
|
# -v $HOME/.Skype:/home/skype/.Skype \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
2015-06-19 03:02:52 +02:00
|
|
|
# --link pulseaudio:pulseaudio \
|
|
|
|
# -e PULSE_SERVER=pulseaudio \
|
|
|
|
# --device /dev/video0 \
|
2016-09-29 22:07:03 +02:00
|
|
|
# --name skype \
|
2015-06-05 20:55:25 +02:00
|
|
|
# jess/skype
|
2015-01-01 21:42:14 +01:00
|
|
|
#
|
2016-10-25 22:37:56 +02:00
|
|
|
FROM debian:jessie
|
2014-12-22 23:40:49 +01:00
|
|
|
|
|
|
|
# Tell debconf to run in non-interactive mode
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
# Setup multiarch because Skype is 32bit only
|
|
|
|
# Make sure the repository information is up to date
|
2015-01-01 21:42:14 +01:00
|
|
|
RUN dpkg --add-architecture i386 && \
|
2015-06-05 19:24:11 +02:00
|
|
|
apt-get update && apt-get install -y \
|
2016-10-25 22:37:56 +02:00
|
|
|
ca-certificates \
|
2015-06-05 19:24:11 +02:00
|
|
|
curl \
|
|
|
|
--no-install-recommends
|
2014-12-22 23:40:49 +01:00
|
|
|
|
2016-10-25 22:37:56 +02:00
|
|
|
ENV SKYPE_VERSION 4.3.0.37-1
|
2014-12-22 23:40:49 +01:00
|
|
|
|
|
|
|
# Install Skype
|
2016-10-25 22:37:56 +02:00
|
|
|
RUN curl -sSL "https://download.skype.com/linux/skype-debian_${SKYPE_VERSION}_i386.deb" > /usr/src/skype.deb && \
|
2015-07-07 03:08:19 +02:00
|
|
|
dpkg --force-depends -i /usr/src/skype.deb && \
|
2015-06-07 02:48:44 +02:00
|
|
|
apt-get install -fy \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2014-12-22 23:40:49 +01:00
|
|
|
|
2015-12-14 09:20:09 +01:00
|
|
|
# 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
|
|
|
|
|
2015-01-01 21:42:14 +01:00
|
|
|
# Start Skype
|
|
|
|
ENTRYPOINT ["skype"]
|