# DeployU document server: ONLYOFFICE Docs Community Edition (AGPL-3.0) with two small
# additions — origin gzip for the editor assets, and the DeployU wordmark in the editor header.
# Everything else is the stock image. Modified source (this repository's files) is offered to
# all users of the DeployU editor at <app>/open-source (AGPL-3.0 section 13).
ARG BASE_VERSION=9.4
FROM onlyoffice/documentserver:${BASE_VERSION}
ARG BASE_VERSION
LABEL org.opencontainers.image.title="deployu-office-docs" \
      org.opencontainers.image.description="ONLYOFFICE Docs CE ${BASE_VERSION} + DeployU gzip and branding overlay" \
      org.opencontainers.image.licenses="AGPL-3.0-only" \
      org.opencontainers.image.base.name="docker.io/onlyoffice/documentserver:${BASE_VERSION}"
# nginx: compress editor assets (Debian's nginx.conf has gzip on but compresses text/html only)
COPY conf/zz-deployu-gzip.conf /etc/nginx/conf.d/zz-deployu-gzip.conf
# editor header wordmark (light and dark themes); all three editors reference these two files
COPY branding/header-logo_s.svg /var/www/onlyoffice/documentserver/web-apps/apps/common/main/resources/img/header/header-logo_s.svg
COPY branding/dark-logo_s.svg   /var/www/onlyoffice/documentserver/web-apps/apps/common/main/resources/img/header/dark-logo_s.svg
