diff --git a/letsencrypt/CHANGELOG.md b/letsencrypt/CHANGELOG.md index e34b5ea..442fae4 100644 --- a/letsencrypt/CHANGELOG.md +++ b/letsencrypt/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 3.0 +- Use our Python base images with cerbot 0.32.0 + ## 2.3 - Update certbot to 0.30.2 diff --git a/letsencrypt/Dockerfile b/letsencrypt/Dockerfile index 0280ebb..0b8c9ae 100644 --- a/letsencrypt/Dockerfile +++ b/letsencrypt/Dockerfile @@ -1,11 +1,14 @@ ARG BUILD_FROM FROM $BUILD_FROM -# Add env -ENV LANG C.UTF-8 - # Setup base -RUN apk add --no-cache certbot +ARG CERTBOT_VERSION +RUN apk add --no-cache \ + openssl libffi musl libstdc++ \ + && apk add --no-cache --virtual .build-dependencies \ + g++ musl-dev openssl-dev libffi-dev \ + && pip3 install --no-cache-dir certbot==${CERTBOT_VERSION} \ + && apk del .build-dependencies # Copy data COPY run.sh / diff --git a/letsencrypt/build.json b/letsencrypt/build.json new file mode 100644 index 0000000..f4e5b3c --- /dev/null +++ b/letsencrypt/build.json @@ -0,0 +1,12 @@ +{ + "build_from": { + "amd64": "homeassistant/amd64-base-python:3.7", + "i386": "homeassistant/i386-base-python:3.7", + "armhf": "homeassistant/armhf-base-python:3.7", + "armv7": "homeassistant/armv7-base-python:3.7", + "aarch64": "homeassistant/aarch64-base-python:3.7" + }, + "args": { + "CERTBOT_VERSION": "0.32.0" + } +} diff --git a/letsencrypt/config.json b/letsencrypt/config.json index acdc387..0ad1ce0 100644 --- a/letsencrypt/config.json +++ b/letsencrypt/config.json @@ -1,6 +1,6 @@ { "name": "Let's Encrypt", - "version": "2.3", + "version": "3.0", "slug": "letsencrypt", "description": "Manage certificate from Let's Encrypt", "url": "https://home-assistant.io/addons/lets_encrypt/",