From db85fff344cd378032cfc562b25312841780cffd Mon Sep 17 00:00:00 2001 From: Sergey Kirichenko Date: Thu, 11 Apr 2024 12:07:24 +0300 Subject: [PATCH] Add static campaings to nginx (#199) --- install/docker/Dockerfile.app | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/docker/Dockerfile.app b/install/docker/Dockerfile.app index e7ed2dfff34..fcc5b625e5f 100644 --- a/install/docker/Dockerfile.app +++ b/install/docker/Dockerfile.app @@ -42,7 +42,8 @@ RUN apt-get -y update && \ ADD https://api.github.com/repos/ONLYOFFICE/DocSpace-buildtools/git/refs/heads/${GIT_BRANCH} version.json RUN git clone -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-buildtools.git ${SRC_PATH}/buildtools && \ git clone --recurse-submodules -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-Server.git ${SRC_PATH}/server && \ - git clone -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-Client.git ${SRC_PATH}/client + git clone -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-Client.git ${SRC_PATH}/client && \ + git clone -b "master" --depth 1 https://github.com/ONLYOFFICE/ASC.Web.Campaigns.git ${SRC_PATH}/campaigns RUN cd ${SRC_PATH} && \ mkdir -p /app/onlyoffice/config/ && \ @@ -148,6 +149,7 @@ COPY --from=base /etc/nginx/conf.d /etc/nginx/conf.d COPY --from=base /etc/nginx/includes /etc/nginx/includes COPY --from=base ${SRC_PATH}/publish/web/client ${BUILD_PATH}/client COPY --from=base ${SRC_PATH}/publish/web/public ${BUILD_PATH}/public +COPY --from=base ${SRC_PATH}/campaigns/src/campaigns ${BUILD_PATH}/public/campaigns COPY --from=base ${SRC_PATH}/publish/web/management ${BUILD_PATH}/management COPY --from=base ${SRC_PATH}/buildtools/install/docker/config/nginx/docker-entrypoint.d /docker-entrypoint.d COPY --from=base ${SRC_PATH}/buildtools/install/docker/config/nginx/templates/upstream.conf.template /etc/nginx/templates/upstream.conf.template