Here’s a minimal Apptainer (formerly Singularity) .def file to install an APT package in a Debian-based container:
.def
Bootstrap: docker From: debian:latest %post apt-get update && apt-get install -y <package-name>
Bootstrap: docker
From: debian:latest
%post
apt-get update
apt-get install -y <package-name>
<package-name>
cowsay
To install cowsay:
Bootstrap: docker From: debian:latest %post apt-get update && apt-get install -y cowsay
Build the container with:
apptainer build my_container.sif my_container.def
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.
Vibe can make mistakes. Check answers. Learn more