2018-03-05 10:25:34 +00:00
|
|
|
FROM ubuntu:xenial
|
2016-04-14 09:34:11 +00:00
|
|
|
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
|
|
|
|
|
|
|
|
# To avoid problems with Dialog and curses wizards
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2016-12-14 16:12:44 +00:00
|
|
|
RUN apt-get update && \
|
2018-03-05 10:25:34 +00:00
|
|
|
apt-get -y --no-install-recommends install ca-certificates apt-transport-https wget attr && \
|
2016-12-14 16:12:44 +00:00
|
|
|
wget -O - https://atlassian.artifactoryonline.com/atlassian/api/gpg/key/public | apt-key add - && \
|
2018-03-05 10:25:34 +00:00
|
|
|
echo "deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial main" > /etc/apt/sources.list.d/atlassian-hipchat4.list && \
|
2016-12-14 16:12:44 +00:00
|
|
|
apt-get update && \
|
|
|
|
apt-get -y --no-install-recommends install hipchat4 libqt5gui5 && \
|
|
|
|
apt-get -fy --no-install-recommends install && \
|
|
|
|
rm -rf -- /var/lib/apt/lists/*
|
2016-04-14 09:34:11 +00:00
|
|
|
|
2016-05-19 15:18:36 +00:00
|
|
|
# Make HipChat grsec friendly
|
|
|
|
#
|
2016-05-19 15:44:06 +00:00
|
|
|
# To build the Docker image, I currently had to disable the following grsec protections:
|
|
|
|
# # grep -E "chroot_deny_chmod|chroot_deny_mknod|chroot_caps" /etc/sysctl.d/grsec.conf
|
|
|
|
# kernel.grsecurity.chroot_deny_chmod = 0
|
|
|
|
# kernel.grsecurity.chroot_deny_mknod = 0
|
|
|
|
# kernel.grsecurity.chroot_caps = 0 (relates to a systemd package)
|
2016-05-19 15:18:36 +00:00
|
|
|
|
2018-03-05 10:25:34 +00:00
|
|
|
RUN useradd -u 1000 -m -d /home/user -s /usr/sbin/nologin -g video user
|
2016-04-14 09:34:11 +00:00
|
|
|
|
2016-11-29 09:44:12 +00:00
|
|
|
COPY launch /launch
|
|
|
|
|
2018-03-05 10:25:34 +00:00
|
|
|
WORKDIR /home/user
|
2016-04-14 09:34:11 +00:00
|
|
|
VOLUME [ "/tmp" ]
|
2016-11-29 09:44:12 +00:00
|
|
|
ENTRYPOINT [ "sh", "/launch" ]
|