Bump Docker images use for documentation to Alpine 3.20

This commit is contained in:
Jesper Noordsij 2024-06-05 16:58:05 +02:00 committed by GitHub
parent bfda5e607f
commit b368e71337
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 24 additions and 45 deletions

View file

@ -1,10 +1,12 @@
FROM alpine:3.14
FROM alpine:3.20
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin
ENV PATH="${PATH}:/venv/bin"
COPY requirements.txt /mkdocs/
WORKDIR /mkdocs
VOLUME /mkdocs
RUN apk --no-cache --no-progress add py3-pip gcc musl-dev python3-dev \
&& pip3 install --user -r requirements.txt
&& python3 -m venv /venv \
&& source /venv/bin/activate \
&& pip3 install -r requirements.txt