-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathDockerfile
48 lines (39 loc) · 1.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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 \
# jess/skype
#
FROM debian:bullseye-slim
# 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 \
procps \
--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/*
COPY run-skype-and-wait-for-exit /usr/local/bin
# 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 ["run-skype-and-wait-for-exit"]