Add esphome user to container

This commit is contained in:
Jesse Hills 2024-02-27 15:23:09 +13:00
parent 74e72cc6ea
commit 13ccfc9898
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
1 changed files with 4 additions and 0 deletions

View File

@ -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 ./