Version control for Certbot packages

This commit is contained in:
MrMeeb 2024-05-12 09:21:44 +00:00
parent 6a2cca0af6
commit 15a0cb3a16
2 changed files with 6 additions and 1 deletions

View File

@ -57,10 +57,11 @@ RUN python3 -m venv /app/certbot/ && /app/certbot/bin/pip install --upgrade pip
#Get required packages for building, build, then cleanup
#Added additional pip steps to fix cython 3.0.0 issue - https://github.com/yaml/pyyaml/issues/601
COPY requirements.txt /app/certbot/requirements.txt
RUN apk add --no-cache --virtual .deps gcc python3-dev libc-dev libffi-dev && \
/app/certbot/bin/pip install wheel && \
/app/certbot/bin/pip install "Cython<3.0" pyyaml --no-build-isolation && \
/app/certbot/bin/pip install certbot certbot-dns-cloudflare && \
/app/certbot/bin/pip install -r /app/certbot/requirements.txt && \
ln -s /app/certbot/bin/certbot /usr/bin/certbot &&\
apk del .deps

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
# For pinning Certbot packages to then be parsed by Renovate
certbot ==2.9.0
certbot-dns-cloudflare ==2.9.0