diff --git a/homeassistant/base/Dockerfile b/homeassistant/base/Dockerfile index 5414736..829f0ff 100644 --- a/homeassistant/base/Dockerfile +++ b/homeassistant/base/Dockerfile @@ -103,14 +103,12 @@ RUN apk add --no-cache \ #### ## Install pip module for component/homeassistant RUN apk add --no-cache \ + mariadb-client-libs postgresql-libs freetds \ + && apk add --no-cache --virtual .build-dependencies \ gcc g++ musl-dev python3-dev make \ - mariadb-dev mariadb-client-libs \ - postgresql-dev postgresql-libs \ - freetds-dev freetds \ + mariadb-dev postgresql-dev freetds-dev \ + && pip3 install --no-cache-dir cython \ && pip3 install --no-cache-dir mysqlclient psycopg2 \ && pip3 install --no-cache-dir https://github.com/wayfair/pymssql/archive/v2.1.3.0.0.1.zip \ && pip3 install --no-cache-dir cchardet uvloop aiodns \ - && pip3 install --no-cache-dir cython \ - && apk del \ - mariadb-dev postgresql-dev freetds-dev \ - gcc g++ musl-dev python3-dev make + && apk del .build-dependencies