Skip to content

Instantly share code, notes, and snippets.

@jaymody
Last active October 31, 2022 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaymody/db2a41c2dbdfaf8f17b26949dc562d84 to your computer and use it in GitHub Desktop.
Save jaymody/db2a41c2dbdfaf8f17b26949dc562d84 to your computer and use it in GitHub Desktop.
ngc container with my dotfiles
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