File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 2
2
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/python-3-miniconda
3
3
{
4
4
"name" : " pandas" ,
5
+ "containerUser" : " pandas-dev" ,
5
6
"context" : " .." ,
6
7
"dockerFile" : " ../Dockerfile" ,
7
8
Original file line number Diff line number Diff line change @@ -10,4 +10,14 @@ RUN apt-get install -y libhdf5-dev
10
10
RUN python -m pip install --upgrade pip
11
11
RUN python -m pip install \
12
12
-r https://raw.githubusercontent.com/pandas-dev/pandas/main/requirements-dev.txt
13
+
14
+ ARG USERNAME=pandas-dev
15
+ ARG USER_UID=1000
16
+ ARG USER_GID=$USER_UID
17
+ RUN groupadd --gid $USER_GID $USERNAME \
18
+ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash \
19
+ && apt-get install -y sudo \
20
+ && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
21
+ && chmod 0440 /etc/sudoers.d/$USERNAME
22
+
13
23
CMD ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments