mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-22 00:13:40 +00:00
fix(docker): 💚 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>
This commit is contained in:
parent
7f665f545b
commit
9ff9fb2e95
1 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,7 @@ FROM ghcr.io/hadolint/hadolint:latest-alpine AS hadolint-binary
|
||||||
# that anything might go wrong.
|
# that anything might go wrong.
|
||||||
FROM alpine:edge AS buildkit
|
FROM alpine:edge AS buildkit
|
||||||
|
|
||||||
# Since hadolint isn't in the package repos for Alpineyet, we'll copying from the offical
|
# Since hadolint isn't in the package repos for Alpine yet, we'll copying from the offical
|
||||||
# Docker image instead.
|
# Docker image instead.
|
||||||
COPY --from=hadolint-binary /bin/hadolint /usr/bin/hadolint
|
COPY --from=hadolint-binary /bin/hadolint /usr/bin/hadolint
|
||||||
|
|
||||||
|
@ -40,7 +40,10 @@ RUN apk add --no-cache \
|
||||||
curl \
|
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) \
|
&& (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
|
| 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 \
|
RUN pip3 install --no-cache-dir \
|
||||||
|
--break-system-packages \
|
||||||
mkdocs-material \
|
mkdocs-material \
|
||||||
mkdocs-redirects \
|
mkdocs-redirects \
|
||||||
mkdocs-git-revision-date-localized-plugin \
|
mkdocs-git-revision-date-localized-plugin \
|
||||||
|
|
Loading…
Reference in a new issue