From 5337aa84ade6992bf56f443f7f4f904054b64ca8 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 27 Feb 2024 15:52:22 +1300 Subject: [PATCH] Add esphome user to container (#831) --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1afe326..898e65f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,10 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \ && unzip /tmp/protoc.zip -d /usr -x readme.txt \ && rm /tmp/protoc.zip +RUN useradd -ms /bin/bash esphome + +USER esphome + WORKDIR /aioesphomeapi COPY requirements_test.txt ./