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 /dockerfiles/Dockerfile.builder.onbuild
parent9da9b9e1f684724b96e6694c34c87457de8a8989 (diff)
Minify assets (HTML,CSS,JS,JSON,XML,SVG)
Diffstat (limited to 'dockerfiles/Dockerfile.builder.onbuild')
-rw-r--r--dockerfiles/Dockerfile.builder.onbuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/dockerfiles/Dockerfile.builder.onbuild b/dockerfiles/Dockerfile.builder.onbuild
index 2c5c4fd1..6f72cc53 100644
--- a/dockerfiles/Dockerfile.builder.onbuild
+++ b/dockerfiles/Dockerfile.builder.onbuild
@@ -28,6 +28,9 @@ ONBUILD RUN /scripts/normalize-links.sh /site ${VER}
# Compress images
ONBUILD RUN /scripts/compress_images.sh /site ${VER}
+# Minify assets
+ONBUILD RUN /scripts/minify ${VER}
+
# Make an index.html and 404.html which will redirect / to /${VER}/
ONBUILD RUN echo "<html><head><title>Redirect for ${VER}</title><meta http-equiv=\"refresh\" content=\"0;url='/${VER}/'\" /></head><body><p>If you are not redirected automatically, click <a href=\"/${VER}/\">here</a>.</p></body></html>" > /site/index.html
ONBUILD RUN echo "<html><head><title>Redirect for ${VER}</title><meta http-equiv=\"refresh\" content=\"0;url='/${VER}/'\" /></head><body><p>If you are not redirected automatically, click <a href=\"/${VER}/\">here</a>.</p></body></html>" > /site/404.html