Created
January 31, 2022 04:24
-
-
Save jaymody/878c4a42b02b317f8958a92816cc3c58 to your computer and use it in GitHub Desktop.
Docker image for a somewhat beefy ubuntu20.04 installation with my dotfiles repo
This file contains hidden or 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 ubuntu:20.04 | |
# don't let tzdata prompt timezone selection, just use UTC | |
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 \ | |
vim \ | |
wget \ | |
zsh | |
# "extra" packages | |
RUN apt install -y \ | |
ack \ | |
direnv \ | |
fd-find \ | |
htop \ | |
jq \ | |
python3 \ | |
python3-pip \ | |
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 "o" triggers the overwrite option during the install to overwrite existing dotfiles | |
# RUNZSH=no removes the interactive oh-my-zsh install | |
RUN git clone https://github.com/jaymody/dotfiles.git ~/.dotfiles && \ | |
cd ~/.dotfiles && \ | |
printf "o" | 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