2015-09-25 03:04:41 +02:00
|
|
|
# Run slack desktop app in a container
|
|
|
|
#
|
2015-06-05 20:55:25 +02:00
|
|
|
# docker run --rm -it \
|
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
2016-10-29 19:09:23 +02:00
|
|
|
# --device /dev/snd \
|
|
|
|
# --device /dev/dri \
|
|
|
|
# --device /dev/video0 \
|
|
|
|
# --group-add audio \
|
|
|
|
# --group-add video \
|
|
|
|
# -v "${HOME}/.slack:/root/.config/Slack" \
|
|
|
|
# --ipc="host" \
|
2015-06-05 20:55:25 +02:00
|
|
|
# --name slack \
|
2016-10-29 19:09:23 +02:00
|
|
|
# jess/slack "$@"
|
2015-04-07 20:41:57 +02:00
|
|
|
|
2016-03-19 22:09:14 +01:00
|
|
|
FROM debian:stretch
|
2015-04-07 20:41:57 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
|
|
|
|
2016-03-19 22:09:14 +01:00
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
|
2015-04-07 20:41:57 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-09-25 03:04:41 +02:00
|
|
|
apt-transport-https \
|
|
|
|
ca-certificates \
|
|
|
|
gconf2 \
|
|
|
|
gconf-service \
|
2016-08-26 17:44:58 +02:00
|
|
|
gir1.2-gnomekeyring-1.0 \
|
2015-09-25 03:04:41 +02:00
|
|
|
gvfs-bin \
|
2015-10-26 18:28:57 +01:00
|
|
|
hunspell-en-us \
|
2016-08-26 17:44:58 +02:00
|
|
|
libappindicator1 \
|
2015-09-25 03:04:41 +02:00
|
|
|
libasound2 \
|
2016-06-09 03:21:28 +02:00
|
|
|
libgl1-mesa-dri \
|
|
|
|
libgl1-mesa-glx \
|
2016-08-26 17:44:58 +02:00
|
|
|
libgnome-keyring0 \
|
2015-09-25 03:04:41 +02:00
|
|
|
libgtk2.0-0 \
|
|
|
|
libnotify4 \
|
|
|
|
libnss3 \
|
|
|
|
libxss1 \
|
|
|
|
libxtst6 \
|
|
|
|
locales \
|
2016-03-19 22:09:14 +01:00
|
|
|
python \
|
2015-09-25 03:04:41 +02:00
|
|
|
xdg-utils \
|
|
|
|
--no-install-recommends \
|
2016-03-19 22:09:14 +01:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
|
2015-09-25 03:04:41 +02:00
|
|
|
&& locale-gen en_US.utf8 \
|
2016-03-19 22:09:14 +01:00
|
|
|
&& /usr/sbin/update-locale LANG=en_US.UTF-8
|
|
|
|
|
2016-08-26 17:44:58 +02:00
|
|
|
ENV SLACK_VERSION 2.1.1
|
2016-03-19 22:09:14 +01:00
|
|
|
|
2016-06-09 03:21:28 +02:00
|
|
|
# download the deb and node
|
|
|
|
RUN buildDeps=' \
|
|
|
|
curl \
|
|
|
|
' \
|
|
|
|
&& set -x \
|
|
|
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& curl -sSL "https://downloads.slack-edge.com/linux_releases/slack-desktop-${SLACK_VERSION}-amd64.deb" > /tmp/slack-desktop.deb \
|
2015-09-25 03:04:41 +02:00
|
|
|
&& dpkg -i /tmp/slack-desktop.deb \
|
2016-06-09 03:21:28 +02:00
|
|
|
&& rm -rf /tmp/slack-desktop.deb \
|
|
|
|
&& apt-get purge -y --auto-remove $buildDeps
|
2015-04-07 20:41:57 +02:00
|
|
|
|
2016-06-09 03:21:28 +02:00
|
|
|
ENTRYPOINT ["/usr/lib/slack/slack"]
|