diff --git a/Dockerfile b/Dockerfile index 945b40e..77861d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,11 +13,9 @@ ENV BUILD_VERSION $BUILD_VERSION # <--- System Wide Dependencies --> ENV LANG C.UTF-8 -# RUN apk add --no-cache \ -# nodejs \ -# npm \ -# build-base \ -# python3-dev +RUN apt-get update -y && \ + apt-get install -y gcc git build-essential libtool automake && \ + pip install Cython # <--- Scripts --> COPY docker/bin /app/bin @@ -45,7 +43,7 @@ EXPOSE 8000 # <--- Final --> LABEL \ io.hass.type="addon" \ - io.hass.arch="armhf|aarch64|i386|amd64" + io.hass.arch="armhf|aarch64|i386|amd64|armv7" ENTRYPOINT [ "/app/bin/run.sh" ] CMD [ "/app" ] diff --git a/api/setup.py b/api/setup.py index 5f1b513..86ed90b 100644 --- a/api/setup.py +++ b/api/setup.py @@ -7,7 +7,7 @@ setuptools.setup( "PyYAML==6.0", "fastapi==0.78.0", "pydantic==1.9.1", - "uvicorn==0.18.2", + "uvicorn[standard]==0.18.2", "python-decouple==3.6", ], extras_require={ diff --git a/docker/bin/prep.sh b/docker/bin/prep.sh index f6077ca..24ef962 100755 --- a/docker/bin/prep.sh +++ b/docker/bin/prep.sh @@ -6,7 +6,7 @@ function prep_yarn() { } function prep_py() { - pip install -U wheel setuptools pip + pip install -U wheel setuptools pip Cython } declare -i err=0 werr=0