Add esphome user to container (#831)

This commit is contained in:
Jesse Hills 2024-02-27 15:52:22 +13:00 committed by GitHub
parent 0680442b7f
commit 5337aa84ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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