diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-08-27 19:47:18 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-08-27 19:47:18 +0300 |
commit | 1d9a0f0e55850c16a888eca05eb4212aa74eb6fa (patch) | |
tree | 749c77b1793ffe15f85b0414183fcf578e04ca98 /dockerfiles | |
parent | a2753d9975cad42ea8ca630393820e7fef305522 (diff) |
Reduce the size of the Docker lint image
Remove the /usr/lib/go directory which is about 250MB.
It's only used to compile Vale.
Diffstat (limited to 'dockerfiles')
-rw-r--r-- | dockerfiles/Dockerfile.gitlab-docs-lint | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dockerfiles/Dockerfile.gitlab-docs-lint b/dockerfiles/Dockerfile.gitlab-docs-lint index 947757eb..9f7dcfef 100644 --- a/dockerfiles/Dockerfile.gitlab-docs-lint +++ b/dockerfiles/Dockerfile.gitlab-docs-lint @@ -24,7 +24,10 @@ RUN apk add --no-cache wget zip tar make && \ make install && \ cd .. && \ rm -r vale-${VALE_VERSION} && \ - rm v${VALE_VERSION}.tar.gz + rm v${VALE_VERSION}.tar.gz && \ + # Remove the /usr/lib/go directory, we no longer need it after Vale is built, + # and it cleans up more than 200MB of space. + rm -rf /usr/lib/go # Set up needed environment variables that are called with --build-arg when # the Docker image is built (see .gitlab-ci.yml). |