| ADD rootfs.tar.xz / # buildkit |
| CMD ["bash"] |
| ARG author |
| LABEL author=Collabora Productivity Ltd. |
| LABEL description=Collabora Online is a powerful collaborative Office suite that supports all major document, spreadsheet and presentation file formats, which you can integrate into your own infrastructure. Collabora Online provides data security and sovereignty, and is ideally suited to the demands of a modern distributed working environment. Delivering a familiar look and feel, Collabora Online represents a real alternative to other big-brands solutions, giving you control and flexibility. |
| ARG releasenotes |
| LABEL release.notes=https://www.collaboraonline.com/code-24-04-release-notes/ |
| ARG version |
| LABEL version=24.04.10.1 |
| ARG coretag |
| LABEL commit.history.core=https://git.libreoffice.org/core/+log/cp-24.04.10-1 |
| ARG onlinetag |
| LABEL commit.history.online=https://github.com/CollaboraOnline/online/commits/cp-24.04.10-1 |
| ARG repo |
| ARG type |
| ARG nobrand |
| ENV LC_CTYPE=C.UTF-8 |
| RUN |8 author= releasenotes= version=24.04.10.1 coretag=cp-24.04.10-1 onlinetag=cp-24.04.10-1 repo= type= nobrand= /bin/sh -c apt-get update && apt-get -y install cpio tzdata libcap2-bin apt-transport-https gnupg2 ca-certificates curl && repourl="https://collaboraoffice.com/${repo:-repos}/CollaboraOnline/"; secret_key=$(cat /run/secrets/secret_key); if [ "$type" = "cool" ] && [ -n ${secret_key+set} ]; then echo "Based on the provided build arguments Collabora Online from customer repo will be used."; repourl="${repourl}24.04/customer-deb-${secret_key}/"; elif [ "$type" = "key" ]; then echo "Based on the provided build arguments license key enabled Collabora Online will be used."; repourl="${repourl}24.04-key/"; else echo "Based on the provided build arguments Collabora Online Development Edition will be used."; repourl="${repourl}24.04-CODE/CODE-deb/"; fi && echo "deb [signed-by=/usr/share/keyrings/collaboraonline-release-keyring.gpg] ${repourl} /" > /etc/apt/sources.list.d/collabora.list && if [ "$repo" = "repos-snapshot" ]; then curl https://www.collaboraoffice.com/downloads/gpg/collaboraonline-snapshot-keyring.gpg --output /usr/share/keyrings/collaboraonline-snapshot-keyring.gpg; sed -i "s/collaboraonline-release-keyring/collaboraonline-snapshot-keyring/" /etc/apt/sources.list.d/collabora.list; else curl https://www.collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg --output /usr/share/keyrings/collaboraonline-release-keyring.gpg; fi && apt-get update && apt-get -y install coolwsd coolwsd-deprecated collaboraoffice-dict-* collaboraofficebasis-ar collaboraofficebasis-bg collaboraofficebasis-ca collaboraofficebasis-cs collaboraofficebasis-da collaboraofficebasis-de collaboraofficebasis-el collaboraofficebasis-en-gb collaboraofficebasis-en-us collaboraofficebasis-eo collaboraofficebasis-es collaboraofficebasis-eu collaboraofficebasis-fi collaboraofficebasis-fr collaboraofficebasis-gl collaboraofficebasis-he collaboraofficebasis-hr collaboraofficebasis-hu collaboraofficebasis-id collaboraofficebasis-is collaboraofficebasis-it collaboraofficebasis-ja collaboraofficebasis-ko collaboraofficebasis-lo collaboraofficebasis-nb collaboraofficebasis-nl collaboraofficebasis-oc collaboraofficebasis-pl collaboraofficebasis-pt collaboraofficebasis-pt-br collaboraofficebasis-ru collaboraofficebasis-sk collaboraofficebasis-sl collaboraofficebasis-sq collaboraofficebasis-sv collaboraofficebasis-tr collaboraofficebasis-uk collaboraofficebasis-vi collaboraofficebasis-zh-cn collaboraofficebasis-zh-tw && if [ -z "$nobrand" ]; then if [ "$type" = "cool" ] || [ "$type" = "key" ]; then apt-get -y install collabora-online-brand; else apt-get -y install code-brand; fi; fi && chown cool:cool /etc/coolwsd && dpkg --purge --force-remove-essential --ignore-depends=perl-base perl-base && rm -rf /var/lib/apt/* && rm -rf /etc/coolwsd/proof_key* # buildkit |
| COPY /scripts/start-collabora-online.sh / # buildkit |
| EXPOSE map[9980/tcp:{}] |
| USER 100 |
| CMD ["/start-collabora-online.sh"] |
| USER root |
| COPY roboto /usr/share/fonts # buildkit |
| COPY roboto /opt/lool/systemplate/usr/share/fonts # buildkit |
| RUN /bin/sh -c fc-cache # buildkit |
| USER cool |