chore(global): add Pipfile files for pipenv setup

Also in this commit involves some redirection hellscape
and config changes.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-09-12 20:58:11 +08:00
parent 3af92fab38
commit 553ffb13fc
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
9 changed files with 823 additions and 13 deletions

View file

@ -10,7 +10,9 @@ FROM alpine:edge AS buildkit
COPY --from=hadolint-binary /bin/hadolint /usr/bin/hadolint
ENV PACKAGES=/usr/local/lib/python3.11/site-packages
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin
ENV PYTHONDONTWRITEBYTECODE=1
COPY --from=hadolint-binary /bin/hadolint /usr/bin/hadolint
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#linux but for Alpine
# hadolint ignore=DL3018,DL3013
@ -25,6 +27,7 @@ RUN apk add --no-cache \
coreutils \
python3 \
py3-pip \
pipx \
py3-wheel \
shellcheck \
gcc \
@ -42,8 +45,8 @@ RUN apk add --no-cache \
| 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 \
RUN pipx install pipenv \
&& pipenv install --system --no-cache \
mkdocs-material \
mkdocs-redirects \
mkdocs-git-revision-date-localized-plugin \