# Lapi-branded DocuSeal: upstream DocuSeal (AGPL-3.0) plus Lapi's templates, icons and theme (overlay/).
# The complete modifications ship inside the image as /lapi-docuseal-source.tar.gz, linked from every page
# ("Source" next to "Powered by DocuSeal"), as the AGPL requires. Upstream source:
# https://github.com/docusealco/docuseal/tree/3.3.3
FROM docuseal/docuseal:3.3.3
COPY overlay/ /app/
COPY . /tmp/lapi-src/
RUN tar -czf /app/public/lapi-docuseal-source.tar.gz -C /tmp/lapi-src . && rm -rf /tmp/lapi-src
