anchor.diff:      iperf3=3.6-2 \
       iputils-ping=3:20180629-2+deb10u1 \
       libbluetooth3=5.50-1.2~deb10u1 \
  -    libpq5=11.7-0+deb10u1 \
  +    libpq5=11.9-0+deb10u1 \
       nut-client=2.7.4-8 \
     && apt-get autoremove -y \
     && apt-get clean \
  
positive.code:     libgmp-dev=2:6.1.2+dfsg-4 \
      libmpc-dev=1.1.0-1 \
      libmpfr-dev=4.0.2-1 \
      libpq5=11.7-0+deb10u1 \
      libswresample-dev=7:4.1.6-1~deb10u1 \
      libswscale-dev=7:4.1.6-1~deb10u1 \
      libudev-dev=241-7~deb10u4 \
      libxrandr-dev=2:1.5.1-1 \
      swig=3.0.12-2 \
    && pip3 install \
      --no-cache-dir \
      --prefix="${PYTHONUSERBASE}" \
        mysqlclient \
        psycopg2-binary \
        uvloop==0.12.2 \
        cchardet \
        cython \
        tensorflow \
        pybluez==0.22 \
        homeassistant=="${VERSION}" \
    && python -m homeassistant --config /config --script check_config \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*
  
negative.code: 
  COPY --from=build "$PYTHONUSERBASE" "$PYTHONUSERBASE"
  
  EXPOSE 8123/tcp
  EXPOSE 8300/tcp
  EXPOSE 51827/tcp
  
  CMD ["python", "-m", "homeassistant", "--config", "/config"]
  