Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-11-25 14:04:02 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-11-25 16:18:39 +0300
commit54bdb870e6fd71abf1f9b2b848549b928bd47f6c (patch)
treefc0ae3f8e44a07a2bad60b1a25cc8edea266afb1 /Dockerfile.master
parent9da9b9e1f684724b96e6694c34c87457de8a8989 (diff)
Minify assets (HTML,CSS,JS,JSON,XML,SVG)
Diffstat (limited to 'Dockerfile.master')
-rw-r--r--Dockerfile.master4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dockerfile.master b/Dockerfile.master
index 5d67eae3..0e61f327 100644
--- a/Dockerfile.master
+++ b/Dockerfile.master
@@ -57,5 +57,9 @@ COPY --from=registry.gitlab.com/gitlab-org/gitlab-docs:12.4 ${TARGET} ${TARGET}
# changes
COPY --from=builder /source/public ${TARGET}
+# Minify assets
+COPY --from=builder /scripts/minify* /scripts/
+RUN /scripts/minify-assets.sh ${TARGET}/ ${TARGET}
+
# Serve the site (target), which is now all static HTML
CMD echo -e "GitLab docs are viewable at:\nhttp://0.0.0.0:4000"; exec nginx -g 'daemon off;'