Skip to content

Use Alpine 3.18 for the single Docker image

Achilleas Pipinellis requested to merge axil-alpine3.18 into main

What does this MR do and why?

This MR upgrades the Alpine version used in the single Docker image from 3.17 to 3.18. This is a minor update that includes several security fixes and improvements.

Most importantly, Alpine 3.18 includes minify 2.12.8 which seemingly fixes an issue with the directories count (thus the -1 hack in the minify assets script).

Since we use Alpine 3.18 in all other images, let's also update this one as well.

How to set up and validate locally

  1. Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md.

  2. Build the Docker image:

    docker buildx build --build-arg NANOC_ENV=production --build-arg VER=16.5 --build-arg SEARCH_BACKEND="google" --tag docs:16.5 --file dockerfiles/single.Dockerfile
  3. Run the container:

    docker run -p 4000:4000 docs:16.5
  4. Visit http://localhost:4000 to view the GitLab Docs website.

Edited by Achilleas Pipinellis

Merge request reports