~ajhalili2006's personal website, built with Zensical (successor of Material for Mkdocs) [old repo name got bugged while attempting to do manual knot migration via repo deletion] andreijiroh.dev
zensical mkdocs-material website

fix(docker): :green_heart: fix broken CI image build on package install in pip

Committing violence against system packages by adding the
--break-system-packages flag to pip3 install command.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>

Changed files
+4 -1
docker
+4 -1
docker/Dockerfile
···
# that anything might go wrong.
FROM alpine:edge AS buildkit
-
# Since hadolint isn't in the package repos for Alpineyet, we'll copying from the offical
# Docker image instead.
COPY --from=hadolint-binary /bin/hadolint /usr/bin/hadolint
···
curl \
&& (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) \
| sh
RUN pip3 install --no-cache-dir \
mkdocs-material \
mkdocs-redirects \
mkdocs-git-revision-date-localized-plugin \
···
# that anything might go wrong.
FROM alpine:edge AS buildkit
+
# Since hadolint isn't in the package repos for Alpine yet, we'll copying from the offical
# Docker image instead.
COPY --from=hadolint-binary /bin/hadolint /usr/bin/hadolint
···
curl \
&& (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) \
| sh
+
# The "--break-system-packages" is added so I don't need to do requirements.txt workaround,
+
# although I also consider using pipx if we wanted to.
RUN pip3 install --no-cache-dir \
+
--break-system-packages \
mkdocs-material \
mkdocs-redirects \
mkdocs-git-revision-date-localized-plugin \