Skip to content

Commit a66f306

Browse files
authored
Merge pull request #48 from europanite/feature/wsl
fix/sudo
2 parents ed51630 + ad3734a commit a66f306

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

service/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN set -eux; \
1212
apt-utils \
1313
build-essential \
1414
ca-certificates \
15+
sudo \
1516
x11-apps; \
1617
rm -rf /var/lib/apt/lists/*
1718

@@ -38,7 +39,9 @@ ENV HOST_GID=${HOST_GID}
3839

3940
# Create user/group
4041
RUN groupadd -g $HOST_GID $HOST_GROUPNAME && \
41-
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
4245

4346
# App workspace
4447
WORKDIR /app

0 commit comments

Comments
 (0)