chore: rename devcontainer, use none root user and install claude code mcp server

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-08 15:26:12 +02:00
1 parent a5b43af89c
commit 2166e83275
3 files changed
+28 -8

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# Use ESPHome image as base
FROM ghcr.io/esphome/esphome:latest
# Create non-root user and add to necessary groups
ARG USERNAME=esphome
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& apt-get update && apt-get install -y sudo dialog \
&& usermod -aG dialout,plugdev $USERNAME \
&& echo "$USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME