test
This commit is contained in:
@@ -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
|
||||
FROM ${BUILD_FROM}
|
||||
|
||||
@@ -9,13 +9,25 @@ COPY rootfs /
|
||||
COPY requirements.txt /tmp/
|
||||
|
||||
# Setup base
|
||||
ARG BUILD_ARCH=amd64
|
||||
RUN \
|
||||
pip3 install \
|
||||
--no-cache-dir \
|
||||
--prefer-binary \
|
||||
--find-links "https://wheels.home-assistant.io/alpine-3.13/${BUILD_ARCH}/" \
|
||||
-r /tmp/requirements.txt
|
||||
apk add --no-cache --virtual .build-dependencies \
|
||||
build-base=0.5-r3 \
|
||||
py3-pip=24.0-r2 \
|
||||
python3-dev=3.12.7-r0 \
|
||||
\
|
||||
&& 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 \
|
||||
# curl -sSLf -o initool.zip \
|
||||
|
||||
Reference in New Issue
Block a user