Default-Git test template

This commit is contained in:
2023-06-28 02:45:10 +00:00
parent 6c75c43570
commit 0ad4243145
6 changed files with 279 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM eclipse-temurin
RUN apt-get update \
&& apt-get install -y \
curl \
git \
sudo \
vim \
nano \
wget \
&& 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}