This commit is contained in:
Hans Karlinius
2024-11-24 14:06:33 +01:00
parent eaa59dc685
commit adc5603c8d
2 changed files with 20 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/base-python/amd64:6.0.3 ARG BUILD_FROM=ghcr.io/hassio-addons/base:16.3.6
# hadolint ignore=DL3006 # hadolint ignore=DL3006
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
@@ -9,13 +9,25 @@ COPY rootfs /
COPY requirements.txt /tmp/ COPY requirements.txt /tmp/
# Setup base # Setup base
ARG BUILD_ARCH=amd64
RUN \ RUN \
pip3 install \ apk add --no-cache --virtual .build-dependencies \
--no-cache-dir \ build-base=0.5-r3 \
--prefer-binary \ py3-pip=24.0-r2 \
--find-links "https://wheels.home-assistant.io/alpine-3.13/${BUILD_ARCH}/" \ python3-dev=3.12.7-r0 \
-r /tmp/requirements.txt \
&& apk add --no-cache \
py3-packaging=24.0-r1 \
py3-six=1.16.0-r9 \
python3=3.12.7-r0 \
\
&& pip3 install -r /tmp/requirements.txt \
\
&& find /usr/local \
\( -type d -a -name test -o -name tests -o -name '__pycache__' \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
\
&& apk del --no-cache --purge .build-dependencies
#RUN \ #RUN \
# curl -sSLf -o initool.zip \ # curl -sSLf -o initool.zip \

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client name: VirtualHere Client
version: "0.1.30" version: "0.1.31"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch: