diff --git a/README.md b/README.md index b7f9999..f14556e 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,9 @@ solid out-of-the-box developer experience: - python3 & pip3 - gcc & gcc-c++ & make +The one exception is the `minimal` image, which contains only bash, curl, git, and +sudo. + ## Images on Docker Hub Each of these images is also published to Docker Hub under the diff --git a/images/minimal/Dockerfile.ubuntu b/images/minimal/Dockerfile.ubuntu new file mode 100644 index 0000000..c9a49be --- /dev/null +++ b/images/minimal/Dockerfile.ubuntu @@ -0,0 +1,24 @@ +FROM ubuntu:22.04 + +USER root +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + bash \ + ca-certificates \ + curl \ + git \ + sudo + +RUN apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +RUN useradd coder \ + --create-home \ + --shell=/bin/bash \ + --uid=1000 \ + --user-group && \ + echo "coder ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/nopasswd + +ENV LANG en_US.UTF-8 +USER coder diff --git a/images/minimal/README.md b/images/minimal/README.md new file mode 100644 index 0000000..9cc95c7 --- /dev/null +++ b/images/minimal/README.md @@ -0,0 +1,11 @@ +# Minimal Image + +This image only contains the bare necessities: + +- bash +- curl +- ca-certificates +- git +- sudo + +It is mainly meant for testing purposes. diff --git a/scripts/images.sh b/scripts/images.sh index 27c040f..cceb537 100644 --- a/scripts/images.sh +++ b/scripts/images.sh @@ -21,6 +21,7 @@ IMAGES=( "clion" "goland" "intellij" + "minimal" "jupyter" "pycharm" "webstorm"