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
|
|
|
#
|
2019-07-26 19:55:34 +02:00
|
|
|
FROM debian:bullseye-slim
|
2014-12-22 23:40:49 +01:00
|
|
|
|
|
|
|
# Tell debconf to run in non-interactive mode
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2017-06-11 02:46:25 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
apt-transport-https \
|
2016-10-25 22:37:56 +02:00
|
|
|
ca-certificates \
|
2015-06-05 19:24:11 +02:00
|
|
|
curl \
|
2018-09-14 17:34:03 +02:00
|
|
|
gnupg \
|
2019-04-05 00:26:09 +02:00
|
|
|
procps \
|
2015-06-05 19:24:11 +02:00
|
|
|
--no-install-recommends
|
2014-12-22 23:40:49 +01:00
|
|
|
|
2017-06-11 02:46:25 +02: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
|
|
|
|
2017-06-11 02:46:25 +02:00
|
|
|
RUN apt-get update && apt-get -y install \
|
|
|
|
skypeforlinux \
|
|
|
|
--no-install-recommends \
|
2015-06-07 02:48:44 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2014-12-22 23:40:49 +01:00
|
|
|
|
2018-04-10 22:07:13 +02: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
|
2018-04-10 22:07:13 +02:00
|
|
|
ENTRYPOINT ["run-skype-and-wait-for-exit"]
|
|
|
|
|