-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
30 lines (25 loc) · 1.25 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
FROM centos:centos7
# Install Collabora, libmapuid and dumb-init
RUN yum -y --setopt=tsflags=nodocs install wget openssl && \
wget https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7/repodata/repomd.xml.key && \
rpm --import repomd.xml.key && \
yum-config-manager --add-repo https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7 && \
yum -y --setopt=tsflags=nodocs --nogpgcheck install loolwsd CODE-brand && \
# dumb-init
wget -O /usr/local/sbin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && \
chmod +x /usr/local/sbin/dumb-init && \
# libmapuid
curl https://raw.githubusercontent.com/appuio/libmapuid/master/lib/libmapuid.so -o /usr/local/lib/libmapuid.so && \
chmod 755 /usr/local/lib/libmapuid.so && \
echo "/usr/local/lib/libmapuid.so" > /etc/ld.so.preload
# Setup directories and permissions - prepare for libmapuid
RUN usermod -u 1001 lool && \
mkdir /home/lool && \
directories="/home/lool /etc/loolwsd /var/cache/loolwsd /opt/lool" && \
chown -R lool:root $directories && \
chmod -R g+rwX $directories
ADD entrypoint.sh /
COPY loolwsd.xml /etc/loolwsd/loolwsd.xml
USER 1001
ENTRYPOINT ["dumb-init", "/entrypoint.sh"]
CMD ["loolwsd"]