Open jlongman opened 3 years ago
Introduce a multi-stage build - reduces size from ~160MB by ~100MB down to 60MB.
--user
$HOME/.local
Use a user in the final container - best practices, security.
/root/.local
/home/appuser/.local
note, I've only tested docker run --rm -it -ePYHQ_USER -ePYHQ_PASSWORD from the cli as I don't have a mqtt setup atm.
docker run --rm -it -ePYHQ_USER -ePYHQ_PASSWORD
Introduce a multi-stage build - reduces size from ~160MB by ~100MB down to 60MB.
--user
installation which puts the installation into$HOME/.local
.Use a user in the final container - best practices, security.
/root/.local
to/home/appuser/.local
note, I've only tested
docker run --rm -it -ePYHQ_USER -ePYHQ_PASSWORD
from the cli as I don't have a mqtt setup atm.