dockerfiles/skype/Dockerfile

48 lines
1.1 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:buster-slim
2014-12-22 23:40:49 +01:00
# 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 \
gnupg \
--no-install-recommends
2014-12-22 23:40:49 +01:00
# 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
2014-12-22 23:40:49 +01:00
RUN apt-get update && apt-get -y install \
skypeforlinux \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
2014-12-22 23:40:49 +01:00
COPY run-skype-and-wait-for-exit /usr/local/bin
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 ["run-skype-and-wait-for-exit"]