Skip to content

Instantly share code, notes, and snippets.

@jaymody
Last active January 31, 2022 03:53
Show Gist options
  • Save jaymody/6ca1228259fd3eb9b5cdde2212683a09 to your computer and use it in GitHub Desktop.
Save jaymody/6ca1228259fd3eb9b5cdde2212683a09 to your computer and use it in GitHub Desktop.
Dockerfile for a barebones ubuntu image with my dotfiles setup
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update -y && apt upgrade -y && apt install -y \
curl \
git \
vim \
zsh
RUN apt autoremove -y && apt clean && rm -rf "/var/lib/apt/lists/*" "/tmp/*" "/var/tmp/*"
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