dockerfiles/skype/Dockerfile

43 lines
1.0 KiB
Docker
Raw Normal View History

# 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 \
# -e DISPLAY=unix$DISPLAY \
# --link pulseaudio:pulseaudio \
# -e PULSE_SERVER=pulseaudio \
# --device /dev/video0 \
# --name skype \
# jess/skype
2015-01-01 21:42:14 +01:00
#
FROM debian:stretch
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 && \
apt-get update && apt-get install -y \
curl \
--no-install-recommends
2014-12-22 23:40:49 +01:00
# Install Skype
RUN curl http://download.skype.com/linux/skype-debian_4.3.0.37-1_i386.deb > /usr/src/skype.deb && \
dpkg --force-depends -i /usr/src/skype.deb && \
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"]