Created
May 2, 2022 01:59
-
-
Save K4rakara/356ccf425575f31bc664e4541681595f to your computer and use it in GitHub Desktop.
Ubuntu Toolbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
podman build -t ubuntu-toolbox - < ubuntu-toolbox.dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM docker.io/library/ubuntu:latest | |
ENV \ | |
NAME=ubuntu-toolbox \ | |
VERSION=latest | |
LABEL \ | |
name="$NAME" \ | |
version="$VERSION" \ | |
usage="This image is meant to be used with toolbox" \ | |
summary="Base image for creating Ubuntu toolbox containers" \ | |
com.github.containers.toolbox="true" | |
# Update apt | |
RUN \ | |
apt update --assume-yes 2>/dev/null \ | |
&& apt upgrade --assume-yes 2>/dev/null | |
# Required by toolbox | |
RUN \ | |
apt install --assume-yes libcap2-bin libnss-myhostname sudo 2>/dev/null \ | |
&& echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/toolbox | |
# Unminimize image | |
RUN yes | unminimize | |
# Clean apt cache | |
RUN apt-get clean 2>/dev/null | |
CMD ["sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment