We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1107407 commit 9533ea4Copy full SHA for 9533ea4
1 file changed
.github/docker/python-nodejs.Dockerfile
@@ -4,4 +4,14 @@ RUN true \
4
&& apt-get update \
5
&& apt-get install -y python3 python3-pip python3-venv \
6
&& apt-get install -y nodejs npm \
7
+&& apt-get install -y iproute2 \
8
&& true
9
+
10
+RUN useradd -m -s /bin/bash build && \
11
+ echo "build ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
12
13
+WORKDIR /home/build/project
14
+RUN chown build:build /home/build
15
16
+# 4. Switch to the non-root user
17
+USER build
0 commit comments