Last active
October 31, 2022 17:07
-
-
Save jaymody/db2a41c2dbdfaf8f17b26949dc562d84 to your computer and use it in GitHub Desktop.
ngc container with my dotfiles
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 nvcr.io/nvidia/pytorch:22.09-py3 | |
ENV DEBIAN_FRONTEND=noninteractive | |
# "essential" packages | |
RUN apt update -y && apt upgrade -y && apt install -y \ | |
apt-transport-https \ | |
build-essential \ | |
ca-certificates \ | |
coreutils \ | |
curl \ | |
git \ | |
gnupg-agent \ | |
net-tools \ | |
software-properties-common \ | |
sudo \ | |
vim \ | |
wget \ | |
zsh | |
# "extra" packages | |
RUN apt install -y \ | |
ack \ | |
direnv \ | |
fd-find \ | |
htop \ | |
jq \ | |
screen \ | |
tmux \ | |
tree \ | |
unzip \ | |
xclip \ | |
zip | |
# cleanup, makes the image size smaller | |
RUN apt autoremove -y && apt clean && rm -rf "/var/lib/apt/lists/*" "/tmp/*" "/var/tmp/*" | |
# install github.com/jaymody/dotfiles | |
# printf "B" triggers the backup all option during the install to backup existing dotfiles | |
# RUNZSH=no removes the interactive oh-my-zsh install | |
RUN git clone https://github.com/jaymody/dotfiles.git ~/.dotfiles && \ | |
cd ~/.dotfiles && \ | |
printf "B" | bash link $HOME/.dotfiles/dotfiles && \ | |
RUNZSH=no bash zsh/setup.sh && \ | |
chsh -s $(which zsh) | |
CMD ["/bin/zsh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment