We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed51630 + ad3734a commit a66f306Copy full SHA for a66f306
service/Dockerfile
@@ -12,6 +12,7 @@ RUN set -eux; \
12
apt-utils \
13
build-essential \
14
ca-certificates \
15
+ sudo \
16
x11-apps; \
17
rm -rf /var/lib/apt/lists/*
18
@@ -38,7 +39,9 @@ ENV HOST_GID=${HOST_GID}
38
39
40
# Create user/group
41
RUN groupadd -g $HOST_GID $HOST_GROUPNAME && \
- useradd -m -s /bin/bash -u $HOST_UID -g $HOST_GID $HOST_USERNAME
42
+ useradd -m -s /bin/bash -u $HOST_UID -g $HOST_GID $HOST_USERNAME && \
43
+ usermod -aG sudo $HOST_USERNAME && \
44
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
45
46
# App workspace
47
WORKDIR /app
0 commit comments