ac71e9c63a
... after 15ced64d32
Change-Id: If08624d4c9614f3616af7f39c7bc636aebaf749b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95024
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
45 lines
1.8 KiB
Text
45 lines
1.8 KiB
Text
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
FROM debian:stable
|
|
|
|
# get the latest fixes
|
|
# install LibreOffice run-time dependencies
|
|
# install adduser, findutils, openssl and cpio that we need later
|
|
# install an editor
|
|
# tdf#117557 - Add CJK Fonts to LibreOffice Online Docker Image
|
|
RUN apt-get update && \
|
|
apt-get -y install libpng16-16 fontconfig adduser cpio \
|
|
findutils nano libpoco-dev libcap2-bin openssl inotify-tools \
|
|
procps libubsan0 libubsan1 openssh-client fonts-wqy-zenhei \
|
|
fonts-wqy-microhei fonts-droid-fallback fonts-noto-cjk
|
|
|
|
# copy freshly built LibreOffice master and LibreOffice Online master with latest translations
|
|
COPY /instdir /
|
|
|
|
# copy the shell script which can start LibreOffice Online (loolwsd)
|
|
COPY /scripts/run-lool.sh /
|
|
|
|
# set up LibreOffice Online (normally done by postinstall script of package)
|
|
# Fix permissions
|
|
RUN setcap cap_fowner,cap_mknod,cap_sys_chroot=ep /usr/bin/loolforkit && \
|
|
adduser --quiet --system --group --home /opt/lool lool && \
|
|
mkdir -p /var/cache/loolwsd && chown lool: /var/cache/loolwsd && \
|
|
rm -rf /var/cache/loolwsd/* && \
|
|
rm -rf /opt/lool && \
|
|
mkdir -p /opt/lool/child-roots && \
|
|
loolwsd-systemplate-setup /opt/lool/systemplate /opt/libreoffice >/dev/null 2>&1 && \
|
|
touch /var/log/loolwsd.log && \
|
|
chown lool:lool /var/log/loolwsd.log && \
|
|
chown -R lool:lool /opt/ && \
|
|
chown -R lool:lool /etc/loolwsd
|
|
|
|
EXPOSE 9980
|
|
|
|
# switch to lool user (use numeric user id to be compatible with Kubernetes Pod Security Policies)
|
|
USER 101
|
|
|
|
CMD bash /run-lool.sh
|