libreoffice-online/docker/from-packages/Ubuntu-ppc64le
inductor 5ca5ed3b01 Use COPY rather than ADD
Signed-off-by: inductor <kela@inductor.me>
Change-Id: I6f34fe0f41af627a8d6966ca42ead3b324251eba
2023-02-03 12:36:02 +01:00

42 lines
1.3 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# syntax=docker/dockerfile:1.4
# 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 ubuntu:20.04
# repo: can be 'repos', 'repos-staging', 'repos-snapshot'
# Optional. The default is 'repos'.
ARG repo
# version: can be '22.05' and '21.11'
# Optional. The default is '22.05'.
ARG version
# type: can be
# 'code' - Collabora Online Development Edition
# 'cool' - Collabora Online, to build this you need to give your secret URL part from https://support.collaboraoffice.com, i.e. you have to be Collabora partner or customer
# 'key' - Collabora Online, the license key enabled version.
# Optional. The default is 'code'.
ARG type
# Environment variables
ENV LC_CTYPE C.UTF-8
# Setup scripts for Collabora Online
COPY /scripts/install-collabora-online-ubuntu.sh /
RUN --mount=type=secret,id=secret_key bash install-collabora-online-ubuntu.sh
RUN rm -rf /install-collabora-online-ubuntu.sh
# Start script for Collabora Online
COPY /scripts/start-collabora-online.sh /
COPY /scripts/start-collabora-online.pl /
EXPOSE 9980
# switch to cool user (use numeric user id to be compatible with Kubernetes Pod Security Policies)
USER 105
# Entry point
CMD ["/start-collabora-online.sh"]