File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ FROM arm32v7/ubuntu:bionic
2
2
3
3
ARG DEBIAN_FRONTEND=noninteractive
4
4
5
+ RUN groupadd --gid 1000 builduser \
6
+ && useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser
7
+
5
8
RUN apt-get update && apt-get install -y --no-install-recommends \
6
9
software-properties-common \
7
10
gcc \
@@ -23,5 +26,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
23
26
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
24
27
RUN python --version
25
28
26
- RUN mkdir -p /root/vscode
27
- WORKDIR /root/vscode
29
+ # No Sudo Prompt
30
+ RUN echo 'builduser ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-builduser \
31
+ && echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
32
+
33
+ USER builduser
34
+ WORKDIR /home/builduser
You can’t perform that action at this time.
0 commit comments