feat(images): add minimal image (#216)

Adds a minimal image based on ubuntu 22.04 with bash, git, curl, and sudo.
This commit is contained in:
Cian Johnston 2023-05-11 10:46:48 +01:00 committed by GitHub
parent 520f1adf64
commit 33f1f9abd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 0 deletions

View File

@ -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

View File

@ -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

11
images/minimal/README.md Normal file
View File

@ -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.

View File

@ -21,6 +21,7 @@ IMAGES=(
"clion"
"goland"
"intellij"
"minimal"
"jupyter"
"pycharm"
"webstorm"