⬆️ Upgrades add-on base image to 12.2.1 (#269)

* ⬆️ Upgrades add-on base image to 12.2.1

* Clean up Dockerfile with new base image features
This commit is contained in:
Franck Nijhof 2022-07-19 01:04:16 +02:00 committed by GitHub
parent 8e9efba151
commit 2036e289bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 18 deletions

View file

@ -1,4 +1,4 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.0.0 ARG BUILD_FROM=ghcr.io/hassio-addons/base:12.2.1
# hadolint ignore=DL3006 # hadolint ignore=DL3006
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
@ -9,24 +9,16 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY requirements.txt /tmp/ COPY requirements.txt /tmp/
# Setup base # Setup base
ARG BUILD_ARCH=amd64 # hadolint ignore=DL3042
RUN \ RUN \
apk add --no-cache --virtual .build-dependencies \ apk add --no-cache --virtual .build-dependencies \
automake=1.16.5-r0 \ py3-pip=22.1.1-r0 \
build-base=0.5-r2 \
linux-headers=5.16.7-r1 \
python3-dev=3.10.4-r0 \
\ \
&& apk add --no-cache \ && apk add --no-cache \
nginx=1.22.0-r0 \ nginx=1.22.0-r1 \
py3-pip=22.1.1-r0 \
python3=3.10.4-r0 \ python3=3.10.4-r0 \
\ \
&& pip3 install \ && pip3 install -r /tmp/requirements.txt \
--no-cache-dir \
--prefer-binary \
--find-links "https://wheels.home-assistant.io/alpine-3.16/${BUILD_ARCH}/" \
-r /tmp/requirements.txt \
\ \
&& find /usr/local \ && find /usr/local \
\( -type d -a -name test -o -name tests -o -name '__pycache__' \) \ \( -type d -a -name test -o -name tests -o -name '__pycache__' \) \

View file

@ -1,10 +1,10 @@
--- ---
build_from: build_from:
aarch64: ghcr.io/hassio-addons/base/aarch64:12.0.0 aarch64: ghcr.io/hassio-addons/base:12.2.1
amd64: ghcr.io/hassio-addons/base/amd64:12.0.0 amd64: ghcr.io/hassio-addons/base:12.2.1
armhf: ghcr.io/hassio-addons/base/armhf:12.0.0 armhf: ghcr.io/hassio-addons/base:12.2.1
armv7: ghcr.io/hassio-addons/base/armv7:12.0.0 armv7: ghcr.io/hassio-addons/base:12.2.1
i386: ghcr.io/hassio-addons/base/i386:12.0.0 i386: ghcr.io/hassio-addons/base:12.2.1
codenotary: codenotary:
base_image: codenotary@frenck.dev base_image: codenotary@frenck.dev
signer: codenotary@frenck.dev signer: codenotary@frenck.dev