summaryrefslogtreecommitdiff
path: root/themes/CodeIT/.devcontainer/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CodeIT/.devcontainer/Dockerfile')
-rw-r--r--themes/CodeIT/.devcontainer/Dockerfile42
1 files changed, 22 insertions, 20 deletions
diff --git a/themes/CodeIT/.devcontainer/Dockerfile b/themes/CodeIT/.devcontainer/Dockerfile
index 41cf586..5a39e14 100644
--- a/themes/CodeIT/.devcontainer/Dockerfile
+++ b/themes/CodeIT/.devcontainer/Dockerfile
@@ -4,25 +4,18 @@ FROM klakegg/hugo:ext-ubuntu
ENV DEBIAN_FRONTEND=noninteractive
# Install required packages
-RUN apt update && \
- apt install -y sudo \
- curl \
- gnupg2 \
- linuxbrew-wrapper \
- locales \
- zsh \
- wget \
- powerline \
- fonts-powerline \
- software-properties-common \
- # set up locale
- && locale-gen en_US.UTF-8
-
-# Install git
-RUN add-apt-repository -y ppa:git-core/ppa && apt update && apt install git -y
+RUN apt update
+RUN apt install -y curl
+RUN apt install -y gnupg2
+RUN apt install -y zsh
+RUN apt install -y sudo
+RUN apt install -y locales
+RUN apt install -y vim
+RUN apt install -y fontconfig
+RUN locale-gen en_US.UTF-8
# Install Node.js
-RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
+RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt install nodejs
# Switch back to dialog for any ad-hoc use of apt-get
@@ -52,14 +45,23 @@ ENV TERM xterm
# Set the default shell to bash rather than sh
ENV SHELL /bin/zsh
+# Install Cascadia Code Nerd Font
+RUN mkdir -p ~/.local/share/fonts
+RUN cd ~/.local/share/fonts && curl -fLo "Caskaydia Cove Regular Nerd Font Complete Mono.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/CascadiaCode/Regular/complete/Caskaydia%20Cove%20Regular%20Nerd%20Font%20Complete%20Mono.otf?raw=true
+RUN cd ~/.local/share/fonts && curl -fLo "Caskaydia Cove Regular Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/CascadiaCode/Regular/complete/Caskaydia%20Cove%20Regular%20Nerd%20Font%20Complete.otf?raw=true
+RUN fc-cache -fv
+
# Run the installation script
-RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
+RUN sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install powerlevel10k theme
-RUN git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
+RUN git clone https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
# Install syntax highlighting
-RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.zsh-syntax-highlighting --depth 1
+RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
+
+# Install zsh autosuggestions
+RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Add .zsh configuration
ADD .p10k.zsh $HOME