Files
CoderTemplatesV2/default-git/dockerfiles/python3/Dockerfile
T
2023-06-28 02:45:10 +00:00

21 lines
391 B
Docker

FROM ubuntu
RUN apt-get update \
&& apt-get install -y \
curl \
git \
sudo \
vim \
nano \
wget \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}