Skip to content

Instantly share code, notes, and snippets.

@dmitmel
Created November 30, 2021 22:31
Show Gist options
  • Save dmitmel/d316c779e0606dac60d617ba2b449647 to your computer and use it in GitHub Desktop.
Save dmitmel/d316c779e0606dac60d617ba2b449647 to your computer and use it in GitHub Desktop.
# docker build --tag dotfiles:ubuntu20.04 .
# docker run --rm --volume "${PWD}:/pwd" --detach --name dotfiles --interactive dotfiles:ubuntu20.04
# docker run --rm --volume "${PWD}:/pwd" --name dotfiles --interactive --tty -e TERM -e COLORTERM dotfiles:ubuntu20.04
# docker exec --interactive --tty -e TERM -e COLORTERM dotfiles
FROM ubuntu:20.04
ENV LC_CTYPE=C.UTF-8 DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get dist-upgrade -y && apt-get install apt-utils && apt-get install -y software-properties-common
RUN \
add-apt-repository ppa:neovim-ppa/stable && \
apt-get update && \
apt-get install -y build-essential curl wget zsh vim neovim git python3 python3-psutil python3-colorama python3-distro jq cmake zip kitty-terminfo
# TODO: set-my-syntax-theme
RUN \
export DOTFILES_PATH="$HOME/dotfiles" && \
echo "$DOTFILES_PATH" && \
git clone --recurse-submodules https://github.com/dmitmel/dotfiles.git "$DOTFILES_PATH" && \
zsh -c 'ZSH_DOTFILES="$DOTFILES_PATH/zsh" && source "$ZSH_DOTFILES/functions.zsh" && ZPLG_SKIP_LOADING=1 && source "$ZSH_DOTFILES/plugins.zsh"' && \
echo "source $DOTFILES_PATH/zsh/zshrc" > ~/.zshrc && \
mkdir -p ~/.config/nvim && echo "source $DOTFILES_PATH/nvim/init.vim" > ~/.config/nvim/init.vim && \
chsh -s /bin/zsh
CMD /bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment