File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ {
2+ "argv" : [
3+ " sudo" ,
4+ " -u" ,
5+ " user" ,
6+ " /usr/local/bin/python" ,
7+ " -m" ,
8+ " ipykernel_launcher" ,
9+ " -f" ,
10+ " {connection_file}"
11+ ],
12+ "display_name" : " Python 3 (user)" ,
13+ "language" : " python" ,
14+ "metadata" : {
15+ "debugger" : true
16+ }
17+ }
Original file line number Diff line number Diff line change @@ -7,7 +7,15 @@ COPY --from=eclipse-temurin:11-jdk $JAVA_HOME $JAVA_HOME
77ENV PATH="${JAVA_HOME}/bin:${PATH}"
88
99RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
10- build-essential curl git util-linux jq nodejs npm fonts-noto-cjk
10+ build-essential curl git util-linux jq nodejs npm fonts-noto-cjk sudo
11+
12+ # Create new user with root privileges while keeping root user
13+ RUN useradd -m -s /bin/bash user && \
14+ echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
15+ echo 'user:password' | chpasswd && \
16+ usermod -aG sudo user && \
17+ chmod -R o+rx /root && \
18+ chown -R user:user /root
1119
1220ENV PIP_DEFAULT_TIMEOUT=100 \
1321 PIP_DISABLE_PIP_VERSION_CHECK=1 \
You can’t perform that action at this time.
0 commit comments